com.opera.core.systems.runner.launcher
Class OperaLauncherRunner

java.lang.Object
  extended by com.opera.core.systems.runner.launcher.OperaLauncherRunner
All Implemented Interfaces:
OperaRunner

public class OperaLauncherRunner
extends java.lang.Object
implements OperaRunner


Constructor Summary
OperaLauncherRunner(org.openqa.selenium.remote.DesiredCapabilities capabilities)
           
OperaLauncherRunner(OperaDriverSettings settings)
          Deprecated. 
 
Method Summary
 java.lang.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, java.lang.String... hashes)
          Take screenshots!
 void shutdown()
          In case the 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperaLauncherRunner

@Deprecated
public OperaLauncherRunner(OperaDriverSettings settings)
Deprecated. 


OperaLauncherRunner

public OperaLauncherRunner(org.openqa.selenium.remote.DesiredCapabilities capabilities)
Method Detail

startOpera

public void startOpera()
Description copied from interface: OperaRunner
Start Opera, does nothing if Opera is already started.

Specified by:
startOpera in interface OperaRunner

stopOpera

public void stopOpera()
Description copied from interface: OperaRunner
Stops Opera, does nothing if Opera isn't running. Typically we'll use the exec service to stop Opera, but this method will _ensure_ that Opera is quit from an external process controller.

Specified by:
stopOpera in interface OperaRunner

isOperaRunning

public boolean isOperaRunning()
Description copied from interface: OperaRunner
Is Opera running?

Specified by:
isOperaRunning in interface OperaRunner
Returns:
true if running, false if not running or crashed

isOperaRunning

public boolean isOperaRunning(int processId)
Specified by:
isOperaRunning in interface OperaRunner

hasOperaCrashed

public boolean hasOperaCrashed()
Description copied from interface: OperaRunner
Did Opera crash? This is reset on next call, so if you don't check you won't know.

Specified by:
hasOperaCrashed in interface OperaRunner
Returns:
true if opera has crashed

getOperaCrashlog

public java.lang.String getOperaCrashlog()
Description copied from interface: OperaRunner
If Opera crashed there should be a crashlog.

Specified by:
getOperaCrashlog in interface OperaRunner
Returns:
the crashlog, or null if it does not exist

shutdown

public void shutdown()
Description copied from interface: OperaRunner
In case the runner has sockets and stuff, it needs to be shut down.

Specified by:
shutdown in interface OperaRunner

saveScreenshot

public ScreenShotReply saveScreenshot(long timeout,
                                      java.lang.String... hashes)
Take screenshots!

Specified by:
saveScreenshot in interface OperaRunner
Parameters:
timeout - attempt to take the screenshot until the timeout is reached
hashes - an arbitrary list of hashes to compare with
Returns:
a ScreenshotReply object containing MD5 hash sums and bytes


Copyright © 2011. All Rights Reserved.