eyetracker.test.ready

getEyeTracker(id).test.ready() (since PennController 1.8) Tests whether the participant has granted webGazer access to their webcam, as required by the EyeTracker. Use this early in your experiment, and most usefully in the command of a Button to proceed only after access has been granted. Example: [js highlight=”3,4″ try=”true”]newButton(“Start”) .print() .wait( newEyeTracker().test.ready() .failure( newText(“Please grant access to …

eyetracker.test.calibrated

getEyeTracker(id).test.calibrated() (since PennController 1.8) Tests whether the EyeTracker went through a calibration procedure (regardless of whether it was successful). You probably won’t make use of this, unless you don’t want to calibrate the tracker before your trials nor on every trial, but still need to calibrate it at least on the first trial, and your …

mediarecorder.test.playing

getMediaRecorder(id).test.playing() (since PennController 1.8) Tests whether the recording is currently being played back.

mediarecorder.test.hasPlayed

getMediaRecorder(id).test.hasPlayed() (since PennController 1.8) Tests whether the recording was ever played back.

dropdown.test.selected

getDropDown(id).test.selected(option) or getDropDown(id).test.selected() Tests whether an option is selected. If you pass no option as an argument, then the test will succeed as long as any option is selected. If you pass a number, and provided there is no option whose text content corresponds to this exact number, it will test the index of the …

video.test.playing

getVideo(id).test.playing() (since beta 0.3) Tests whether the video stream is playing at the moment when the test command gets evaluated.

video.test.hasPlayed

getVideo(id).test.hasPlayed() (since beta 0.3) Tests whether the video stream has played at least once before in the trial.

standard.test.printed

getElement(id).test.printed() (since beta 0.3) Tests whether the element was printed onto the page (and has not been removed since then). Example: [js highlight=”17-27″ try=”true”] newText(“instructions”, “Click on Top/Bottom to NOT print its word”) .print() , newButton(“top”, “Top”) .settings.callback( getButton(“top”).remove() ) .print() , newButton(“bottom”, “Bottom”) .settings.callback( getButton(“bottom”).remove() ) .print() , newButton(“print”, “Print the buttons’ words”) .print() …

youtube.test.playing

getYoutube(id).test.playing() (since beta 0.3) Tests whether the video is currently playing.