getSelector(id).select(element)
Selects the specified element.
Example:
[js highlight=”9″ try=”true”]newImage(“square”, “square.png”)
,
newImage(“triangle”, “triangle.png”)
.settings.before( getImage(“square”) )
.print()
,
newSelector(“shapes”)
.settings.add( getImage(“square”) , getImage(“triangle”) )
.select( getImage(“square”) )
.wait()[/js]
Adds two images side by side, selects the image square by default, and waits for a click on either one of them.