button.click

description

Simulates a click on the button.

syntax

getButton(ELEMENT_NAME).click()

example(s)


@newKey(" ")
@    .callback(
@        getButton("continue")
$            .click()
@    )
@,
@newButton("continue", "Continue")
@    .print()
@    .wait()
  • 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.