org.openqa.selenium.server.commands
Class CaptureScreenshotToStringCommand
java.lang.Object
org.openqa.selenium.server.commands.CaptureScreenshotToStringCommand
public class CaptureScreenshotToStringCommand
- extends java.lang.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 java.lang.String |
ID
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
CaptureScreenshotToStringCommand
public CaptureScreenshotToStringCommand()
execute
public java.lang.String execute()
captureAndEncodeSystemScreenshot
public java.lang.String captureAndEncodeSystemScreenshot()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException,
java.io.IOException
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
java.io.IOException
Copyright © 2011. All Rights Reserved.