org.openqa.selenium.server.commands
Class CaptureScreenshotToStringCommand

java.lang.Object
  extended by org.openqa.selenium.server.commands.CaptureScreenshotToStringCommand

public class CaptureScreenshotToStringCommand
extends Object

Captures a full screen shot of the current screen using the java.awt.Robot class. and returns it as a base 64 encoded PNG image.


Field Summary
static String ID
           
 
Constructor Summary
CaptureScreenshotToStringCommand()
           
 
Method Summary
 String captureAndEncodeSystemScreenshot()
           
 String execute()
           
 
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

CaptureScreenshotToStringCommand

public CaptureScreenshotToStringCommand()
Method Detail

execute

public String execute()

captureAndEncodeSystemScreenshot

public String captureAndEncodeSystemScreenshot()
                                        throws InterruptedException,
                                               ExecutionException,
                                               TimeoutException,
                                               IOException
Throws:
InterruptedException
ExecutionException
TimeoutException
IOException


Copyright © 2012. All Rights Reserved.