standard.settings.log

getElement(id).settings.log()

Will add lines to the results file reporting element-specific events. See each Element page to see what gets recorded, and which parameter you can pass to log.

For Canvas elements, Image elements and Text elements the results lines will report the timestamp corresponding to when print was called (if it was called).

Example
[js highlight=”6″]
newButton(“go”, “Go!”)
.print()
.wait()
,
newText(“sentence”, “Hello world!”)
.settings.log()
.print()
,
newButton(“done”, “Done!”)
.print()
.wait()
[/js]