View Source Improve this doc

screenshot

Take a screenshot of the current viewport. To get the screenshot of the whole page use the action command saveScreenshot

Usage

1
2
browser.screenshot();

Returns

  • <String>: screenshot The screenshot as a base64 encoded PNG.