screenshotTake a screenshot of the current viewport. To get the screenshot of the whole page use the action command saveScreenshot Usage1browser.screenshot(); Returns <String>: screenshot The screenshot as a base64 encoded PNG.