selector.select
description
Selects the specified element.
syntax
getSelector(ELEMENT_NAME).select(element)
-
element
:
example(s)
@newImage("square", "square.png")
@,
@newImage("triangle", "triangle.png")
@ .before( getImage("square") )
@ .print()
@,
@newSelector("shapes")
@ .add( getImage("square") , getImage("triangle") )
$ .select( getImage("square") )
@ .wait()
- Adds two images side by side, selects the image square by default, and waits for a click on either one of them.