|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OperaRunner
OperaRunner is an interface for controlling the Opera browser binary. It allows you to start, stop, take screenshots of, and catch crash logs from Opera. OperaRunner implements a pure-Java process manager, OperaLauncherRunner implements one in C++ with a Java API.
| Method Summary | |
|---|---|
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? |
boolean |
isOperaRunning(int processId)
|
ScreenShotReply |
saveScreenshot(long timeout,
String... hashes)
Take a screenshot of the full screen. |
void |
shutdown()
In case the com.opera.core.systems.runner.runner has sockets and stuff, it needs to be shut down. |
void |
startOpera()
Start Opera, does nothing if Opera is already started. |
void |
stopOpera()
Stops Opera, does nothing if Opera isn't running. |
| Method Detail |
|---|
void startOpera()
void stopOpera()
boolean isOperaRunning()
boolean isOperaRunning(int processId)
boolean hasOperaCrashed()
String getOperaCrashlog()
void shutdown()
ScreenShotReply saveScreenshot(long timeout,
String... hashes)
timeout - attempt to take the screenshot until the timeout is reachedhashes - an arbitrary list of hashes to compare with
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||