Skip to main content Link Menu Expand (external link) Document Search Copy Copied

selector.disableClicks

description

Makes it impossible to select by clicking. If no .keys command is called on the element, this makes any selection impossible.

syntax

getSelector(ELEMENT_NAME).disableClicks()

example(s)


@newImage("square", "square.png")
@,
@newImage("triangle", "triangle.png")
@    .before( getImage("square") )
@    .print()
@,
@newSelector("shapes")
$    .disableClicks()
@    .add( getImage("square") , getImage("triangle") )
@    .keys(     "F"           ,        "J"           )
@    .wait()
  • Adds two images side by side and waits for a selection by pressing either the F key or the J key.