standard.hidden

description

Makes the element invisible. Note that when printed, a hidden element still occupies space on the page, but its content is not visible.

syntax

getX(ELEMENT_NAME).hidden()

What does getX() mean?


example(s)


@newText("instruction", "Guess what fruit is in the image below")
@    .print()
@,
@newImage("fruit", "pear.png")
$    .hidden()
@    .print()
@,
@newButton("reveal", "Reveal fruit")
@    .print()
@    .wait()
@,
@getImage("fruit")
@    .visible()
  • Adds some text to the page, a blank space below it and a button below the blank space which, when clicked, reveals an image of a pear.