getText(id).settings.text( string )
Resets the text of the element.
Example:
[js highlight=”8″ try=”true”]newText(“onlyTextOnScreen”, “You have not pressed the spacebar yet”)
.print()
,
newKey(“spacebar”, ” “)
.wait()
,
getText(“onlyTextOnScreen”)
.settings.text(“Now you have pressed the spacebar.”)
[/js]
Updates the text after the spacebar was presssed.