Link Search Menu Expand Document

selector.add

description

Adds as many elements to the selector. By default, selection is done through clicks. See .keys and .enableClicks and .disableClicks.

syntax

getSelector(ELEMENT_NAME).add(element1, element2, ...)
  • element1 :
  • element2 :
  • ... :

example(s)


@newImage("square", "square.png")
@,
@newImage("triangle", "triangle.png")
@    .before( getImage("square") )
@    .print()
@,
@newSelector("shapes")
$    .add( getImage("square") , getImage("triangle") )
@    .wait()
  • Adds two images side by side and waits for a click on either one of them.