getSelector(id).settings.add( element1, element2, ... )
Adds as many elements to the selector. By default, selection is done through clicks. See .settings.keys
and .settings.enableClicks
and .settings.disableClicks
.
Example:
[js highlight=”8″ try=”true”]newImage(“square”, “square.png”)
,
newImage(“triangle”, “triangle.png”)
.settings.before( getImage(“square”) )
.print()
,
newSelector(“shapes”)
.settings.add( getImage(“square”) , getImage(“triangle”) )
.wait()[/js]
Adds two images side by side and waits for a click on either one of them.