tooltip.printTooltip element

getTooltip(id).print()

or getTooltip(id).print( getElement(id) ) (since beta 0.3)

Adds the tooltip to the page, or attaches it to the referenced element (if any).

[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.