public class OperaInProcessRunner extends AbstractOperaRunner implements OperaRunner
CommandLine.logger, settings| Constructor and Description |
|---|
OperaInProcessRunner() |
OperaInProcessRunner(OperaSettings settings) |
| 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.
|
getSettings, sleeppublic OperaInProcessRunner()
public OperaInProcessRunner(OperaSettings settings)
public void startOpera()
throws OperaRunnerException
OperaRunnerstartOpera in interface OperaRunnerOperaRunnerException - if runner has been shut downpublic void stopOpera()
throws OperaRunnerException
OperaRunnerstopOpera in interface OperaRunnerOperaRunnerException - if runner has been shut downpublic boolean isOperaRunning()
OperaRunnerisOperaRunning in interface OperaRunnerpublic boolean hasOperaCrashed()
OperaRunnerhasOperaCrashed in interface OperaRunnerpublic String getOperaCrashlog()
OperaRunnergetOperaCrashlog in interface OperaRunnerpublic void shutdown()
OperaRunnershutdown in interface OperaRunnerpublic ScreenCaptureReply captureScreen()
OperaRunnercaptureScreen in interface OperaRunnerpublic ScreenCaptureReply captureScreen(long timeout)
OperaRunnercaptureScreen in interface OperaRunnertimeout - attempt to take the screen capture until the timeout is reachedpublic ScreenCaptureReply captureScreen(long timeout, List<String> knownMD5s)
OperaRunnercaptureScreen in interface OperaRunnertimeout - 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 storedCopyright © 2012. All Rights Reserved.