selector.settings.frame

getSelector(id).settings.frame("border style")

Defines the style of the frame around the selected element. By default, it is set to solid 2px green.

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”) )
.settings.frame(“dashed 3px violet”)
.wait()[/js]

Adds two images side by side, waits for a click on either one of them and then prints a button. Until the button is clicked, the selected image appears in a dashed, violet, 3px-wide frame.