screenshot

in Japanese(日本語)

Captures the current screen and embeds it in the report.

Functions

function description
screenshot(filename?) Captures the current screen and embeds it in the report right after this step. Without a filename, a step-numbered name is used. The file name takes no label: screenshot("a.png").

Example

tap("#login_btn")
screenshot()               // step-numbered filename
screenshot("after_login.png")

Notes