button.click

getButton(id).click() (since PennController 1.2)

Simulates a click on the button.

Example:

[js highlight=”3,4″ try=”true”]newKey(” “)
.settings.callback(
getButton(“continue”)
.click()
)
,
newButton(“continue”, “Continue”)
.print()
.wait()[/js]

Creates a Key element associated with the spacebar which, whenever pressed, will simulate a click on the continue button added below it, then will wait until the button is clicked (or thus until the spacebar is pressed) before proceeding.