org.openqa.selenium.server.commands
Class CaptureScreenshotCommand

java.lang.Object
  extended by org.openqa.selenium.server.commands.Command
      extended by org.openqa.selenium.server.commands.CaptureScreenshotCommand

public class CaptureScreenshotCommand
extends Command

Captures a full screen shot of the current screen using the java.awt.Robot class.


Field Summary
static String ID
           
 
Constructor Summary
CaptureScreenshotCommand(String fileName)
           
 
Method Summary
 void captureSystemScreenshot()
           
 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

CaptureScreenshotCommand

public CaptureScreenshotCommand(String fileName)
Method Detail

execute

public String execute()
Specified by:
execute in class Command

captureSystemScreenshot

public void captureSystemScreenshot()
                             throws IOException,
                                    InterruptedException,
                                    ExecutionException,
                                    TimeoutException
Throws:
IOException
InterruptedException
ExecutionException
TimeoutException


Copyright © 2012. All Rights Reserved.