tooltip.settings.frameTooltip element

getTooltip(id).settings.frame()

or getTooltip(id).settings.frame("frame-style frame-width frame-color") (since beta 0.3)

Will add a frame surrounding the element to which the tooltip is attached when it is printed. You can optionally define the aesthetics of the frame by passing a string following the CSS format for borders.

newImage("myImage", "square.png")
    .print()
,
newTooltip("myTooltip", "This is a square")
    .settings.frame()
    .print( getImage("myImage") )
    .wait()

Adds an image to the page, surrounds it by a 1px, dotted, gray frame (by default) and places a box with the text This is a square to its bottom-right corner. Both the frame and the tooltip disappear when the tooltip is validated.