click
Simulates a user click or tap event.
click(): this
Notes
- This method sends
mousedown
,mouseup
, andclick
events immediately after each other. - This method also takes care of switching
toggle
checked states, and sets focus on a (parent) focusable element. - An error is thrown if the element is hidden or currently not part of rendered output (see isOutput()).
Related
- class TestOutputElementA class that represents a rendered output element.