org.openqa.selenium.server.commands
Class CaptureScreenshotCommand
java.lang.Object
org.openqa.selenium.server.commands.Command
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.
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
CaptureScreenshotCommand
public CaptureScreenshotCommand(String fileName)
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.