saveScreenshot
Save a screenshot of the current browsing context to a PNG file on your OS. Be aware that some browser drivers take screenshots of the whole document (e.g. Geckodriver with Firefox) and others only of the current viewport (e.g. Chromedriver with Chrome).
#
Usage#
ParametersName | Type | Details |
---|---|---|
filepath | String | path to the generated image (.png suffix is required) relative to the execution directory |
#
ExamplesaveScreenshot.js