org.openqa.selenium.server.browserlaunchers
Class MockBrowserLauncher

java.lang.Object
  extended by org.openqa.selenium.server.browserlaunchers.MockBrowserLauncher
All Implemented Interfaces:
java.lang.Runnable, BrowserLauncher

public class MockBrowserLauncher
extends java.lang.Object
implements BrowserLauncher, java.lang.Runnable


Constructor Summary
MockBrowserLauncher(BrowserConfigurationOptions browserOptions, RemoteControlConfiguration configuration, java.lang.String sessionId, java.lang.String command)
           
 
Method Summary
 void close()
          Stop (kill) the browser process
 java.lang.Process getProcess()
          Returns a process if there is an associated one running with this browser launcher (this is not required to be implementd).
 void launchHTMLSuite(java.lang.String startURL, java.lang.String suiteUrl)
          Start the browser in Selenese mode, auto-running the specified HTML suite
 void launchRemoteSession(java.lang.String url)
          Note that the browserConfigurationOptions object is ignored; This browser configuration is not supported for IE
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockBrowserLauncher

public MockBrowserLauncher(BrowserConfigurationOptions browserOptions,
                           RemoteControlConfiguration configuration,
                           java.lang.String sessionId,
                           java.lang.String command)
Method Detail

launchHTMLSuite

public void launchHTMLSuite(java.lang.String startURL,
                            java.lang.String suiteUrl)
Description copied from interface: BrowserLauncher
Start the browser in Selenese mode, auto-running the specified HTML suite

Specified by:
launchHTMLSuite in interface BrowserLauncher
Parameters:
startURL - the url of the HTML suite to launch
suiteUrl - the url within which to initiate the session (if needed)

close

public void close()
Description copied from interface: BrowserLauncher
Stop (kill) the browser process

Specified by:
close in interface BrowserLauncher

getProcess

public java.lang.Process getProcess()
Description copied from interface: BrowserLauncher
Returns a process if there is an associated one running with this browser launcher (this is not required to be implementd).

Specified by:
getProcess in interface BrowserLauncher
Returns:
a handle to a process if one is available, or null if one is not available or if no browser is running

run

public void run()
Specified by:
run in interface java.lang.Runnable

launchRemoteSession

public void launchRemoteSession(java.lang.String url)
Note that the browserConfigurationOptions object is ignored; This browser configuration is not supported for IE

Specified by:
launchRemoteSession in interface BrowserLauncher


Copyright © 2010. All Rights Reserved.