getTooltip(id).print()
or getTooltip(id).print( getElement(id) )
(since beta 0.3)
or getTooltip(id).print( x , y )
(since PennController 1.6)
Adds the tooltip to the page, or attaches it to the referenced element (if any).
Since PennController 1.6, you can pass x and y coordinates to print the tooltip at a specific point on the screen/document.
[js highlight=”5″ try=”true”]newImage(“myImage”, “square.png”)
.print()
,
newTooltip(“myTooltip”, “This is a square”)
.print( getImage(“myImage”) )
.wait()
[/js]
Adds an image to the page and places a box with the text This is a square to its bottom-right corner, which disappears when a validation button (reading OK by default) is clicked.