Link Search Menu Expand Document

selector.unselect

description

Unselects any element currently selected.

syntax

getSelector(ELEMENT_NAME).unselect()

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()
$    .unselect( getImage("square") )

Adds two images side by side, selects the image square by default, and waits for a click on either one of them. After that it unselects image square.