org.openqa.selenium.server.commands
Class CaptureEntirePageScreenshotToStringCommand
java.lang.Object
org.openqa.selenium.server.commands.Command
org.openqa.selenium.server.commands.CaptureEntirePageScreenshotToStringCommand
public class CaptureEntirePageScreenshotToStringCommand
- extends Command
Capture a screenshot of the in-browser canvas. The entire web page is rendered not just the
current viewport.
Only works for Firefox in Chrome mode for now.
Return a base 64 encoded PNG screenshot of of current page.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final String ID
- See Also:
- Constant Field Values
CaptureEntirePageScreenshotToStringCommand
public CaptureEntirePageScreenshotToStringCommand(String kwargs,
String sessionId)
execute
public String execute()
- Capture a screenshot of the in-browser canvas. The entire web page is rendered not just the
current viewport.
- Specified by:
execute
in class Command
- Returns:
- a base 64 encoded PNG screenshot of of current page.
capturePageScreenshot
public String capturePageScreenshot(String filePath)
screenshotFilePath
public String screenshotFilePath()
screenshotDirectory
public File screenshotDirectory()
Copyright © 2012. All Rights Reserved.