PennController for IBEX › Forums › Support › Neutral answer on test.selected › Reply To: Neutral answer on test.selected
January 24, 2022 at 12:15 pm
#7689
Jeremy
Keymaster
Hello Matthias,
You are right, this is a problem I should fix. You can technically validate a score of 50 but you need to set the cursor to a different value first and release the mouse button, then select the value of 50 again
As a workaround, you can use Function elements and variables to keep track of whether the scale was clicked. Here is a minimal example you can adapt to your case:
newTrial( newScale("test", 100).size("75vw").slider().print() , newFunction(function(){ getScale("test")._element.jQueryElement.click(()=>this.scaleClicked=true) }).call() , newButton("Validate") .print() .wait( newFunction(function(){return this.scaleClicked;}).test.is(true) ) )
Let me know if you have questions
Jeremy