public interface OperaRunner
| Modifier and Type | Method and Description |
|---|---|
ScreenCaptureReply |
captureScreen()
Take a screenshot of the full screen.
|
ScreenCaptureReply |
captureScreen(long timeout)
Take a screenshot of the full screen with a timeout.
|
ScreenCaptureReply |
captureScreen(long timeout,
List<String> knownMD5s)
Take a screenshot of the full screen with a timeout and a list of previously known MD5 hash sum
results.
|
String |
getOperaCrashlog()
If Opera crashed there should be a crashlog.
|
boolean |
hasOperaCrashed()
Did Opera crash? This is reset on next call, so if you don't check you won't know.
|
boolean |
isOperaRunning()
Is Opera running?
|
void |
shutdown()
In case the com.opera.core.systems.runner.runner has open sockets, they need to be closed.
|
void |
startOpera()
Start Opera, does nothing if Opera is already started.
|
void |
stopOpera()
Stops Opera, does nothing if Opera isn't running.
|
void startOpera()
throws OperaRunnerException
OperaRunnerException - if runner has been shut downvoid stopOpera()
throws OperaRunnerException
OperaRunnerException - if runner has been shut downboolean isOperaRunning()
boolean hasOperaCrashed()
String getOperaCrashlog()
void shutdown()
ScreenCaptureReply captureScreen() throws OperaRunnerException
OperaRunnerException - if a communication error occursScreenCaptureReply captureScreen(long timeout) throws OperaRunnerException
timeout - attempt to take the screen capture until the timeout is reachedOperaRunnerException - if a communication error occursScreenCaptureReply captureScreen(long timeout, List<String> knownMD5s) throws OperaRunnerException
timeout - attempt to take the screen capture until the timeout is reachedknownMD5s - a list of hashes of known MD5's, causing no image data to be storedOperaRunnerException - if a communication error occursCopyright © 2012. All Rights Reserved.