org.openqa.selenium.server.browserlaunchers
Class FirefoxChromeLauncher

java.lang.Object
  extended by org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
      extended by org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher
All Implemented Interfaces:
BrowserLauncher
Direct Known Subclasses:
Firefox2Launcher, Firefox3Launcher, FirefoxLauncher

public class FirefoxChromeLauncher
extends AbstractBrowserLauncher


Nested Class Summary
static class FirefoxChromeLauncher.ChromeUrlConvert
           
protected  class FirefoxChromeLauncher.FileLockRemainedException
           
 
Field Summary
static java.lang.String CHROME_URL
           
 
Fields inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
sessionId
 
Constructor Summary
FirefoxChromeLauncher(RemoteControlConfiguration configuration, java.lang.String sessionId)
           
FirefoxChromeLauncher(RemoteControlConfiguration configuration, java.lang.String sessionId, BrowserInstallation browserInstallation)
           
FirefoxChromeLauncher(RemoteControlConfiguration configuration, java.lang.String sessionId, java.lang.String browserString)
           
 
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).
protected  void killFirefoxProcess()
          Wrapper to allow for stubbed-out testing
protected  void launch(java.lang.String url)
           
protected  void launch(java.lang.String url, BrowserConfigurationOptions config)
          This is a default method and browser launchers should override this launch method to support per-test browserConfigurations If the browser configuration options object has no options, however, this method redirects to the launch(url) method.
 void launchHTMLSuite(java.lang.String suiteUrl, java.lang.String browserURL, boolean multiWindow, java.lang.String defaultLogLevel)
          Start the browser in Selenese mode, auto-running the specified HTML suite
 void launchRemoteSession(java.lang.String browserURL, boolean multiWindow, BrowserConfigurationOptions config)
          Start the browser and navigate directly to the specified URL using the supplied browser configurations
protected  void removeCustomProfileDir()
          Wrapper to allow for stubbed-out testing
static void setChangeMaxConnections(boolean changeMaxConnections)
           
protected  void setCustomProfileDir(java.io.File value)
           
protected  void setProcess(java.lang.Process p)
           
 
Methods inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
getConfiguration, getPort, launchRemoteSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHROME_URL

public static final java.lang.String CHROME_URL
See Also:
Constant Field Values
Constructor Detail

FirefoxChromeLauncher

public FirefoxChromeLauncher(RemoteControlConfiguration configuration,
                             java.lang.String sessionId)

FirefoxChromeLauncher

public FirefoxChromeLauncher(RemoteControlConfiguration configuration,
                             java.lang.String sessionId,
                             java.lang.String browserString)
                      throws InvalidBrowserExecutableException
Throws:
InvalidBrowserExecutableException

FirefoxChromeLauncher

public FirefoxChromeLauncher(RemoteControlConfiguration configuration,
                             java.lang.String sessionId,
                             BrowserInstallation browserInstallation)
Method Detail

launch

protected void launch(java.lang.String url)
Specified by:
launch in class AbstractBrowserLauncher

launch

protected void launch(java.lang.String url,
                      BrowserConfigurationOptions config)
Description copied from class: AbstractBrowserLauncher
This is a default method and browser launchers should override this launch method to support per-test browserConfigurations If the browser configuration options object has no options, however, this method redirects to the launch(url) method.

Overrides:
launch in class AbstractBrowserLauncher
Parameters:
url - The base url for starting selenium
config - The browser configuration object

close

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


removeCustomProfileDir

protected void removeCustomProfileDir()
                               throws java.lang.RuntimeException
Wrapper to allow for stubbed-out testing

Throws:
java.lang.RuntimeException

killFirefoxProcess

protected void killFirefoxProcess()
                           throws FirefoxChromeLauncher.FileLockRemainedException
Wrapper to allow for stubbed-out testing

Throws:
FirefoxChromeLauncher.FileLockRemainedException

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).

Returns:
a handle to a process if one is available, or null if one is not available or if no browser is running

setCustomProfileDir

protected void setCustomProfileDir(java.io.File value)

setProcess

protected void setProcess(java.lang.Process p)

setChangeMaxConnections

public static void setChangeMaxConnections(boolean changeMaxConnections)

launchHTMLSuite

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

Specified by:
launchHTMLSuite in interface BrowserLauncher
Overrides:
launchHTMLSuite in class AbstractBrowserLauncher
Parameters:
suiteUrl - the url within which to initiate the session (if needed)
browserURL - the url of the HTML suite to launch
multiWindow - TODO
defaultLogLevel - TODO

launchRemoteSession

public void launchRemoteSession(java.lang.String browserURL,
                                boolean multiWindow,
                                BrowserConfigurationOptions config)
Description copied from interface: BrowserLauncher
Start the browser and navigate directly to the specified URL using the supplied browser configurations

Specified by:
launchRemoteSession in interface BrowserLauncher
Overrides:
launchRemoteSession in class AbstractBrowserLauncher
multiWindow - a flag to specify multiWindow mode
config - Test level browser configuration object


Copyright © 2009. All Rights Reserved.