org.openqa.selenium.server.commands
Class CaptureEntirePageScreenshotToStringCommand

java.lang.Object
  extended by org.openqa.selenium.server.commands.Command
      extended by 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.


Field Summary
static String ID
           
 
Constructor Summary
CaptureEntirePageScreenshotToStringCommand(String kwargs, String sessionId)
           
 
Method Summary
 String capturePageScreenshot(String filePath)
           
 String execute()
          Capture a screenshot of the in-browser canvas.
 File screenshotDirectory()
           
 String screenshotFilePath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values
Constructor Detail

CaptureEntirePageScreenshotToStringCommand

public CaptureEntirePageScreenshotToStringCommand(String kwargs,
                                                  String sessionId)
Method Detail

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.