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

public class FirefoxChromeLauncher
extends AbstractBrowserLauncher


Nested Class Summary
static class FirefoxChromeLauncher.ChromeUrlConvert
           
protected  class FirefoxChromeLauncher.FileLockRemainedException
           
 
Field Summary
 
Fields inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
browserConfigurationOptions, sessionId
 
Constructor Summary
FirefoxChromeLauncher(Capabilities browserOptions, RemoteControlConfiguration configuration, java.lang.String sessionId, BrowserInstallation browserInstallation)
           
FirefoxChromeLauncher(Capabilities browserOptions, RemoteControlConfiguration configuration, java.lang.String sessionId, java.lang.String browserString)
           
 
Method Summary
 void close()
           
protected  void copyCert8db(java.io.File firefoxProfileTemplate)
           
protected  void copyDirectory(java.io.File sourceDir, java.io.File destDir)
           
protected  void copySingleFileWithOverwrite(java.io.File sourceFile, java.io.File destFile)
           
protected  void createCustomProfileDir()
           
protected  void extractProfileFromJar()
           
protected  void generatePacAndPrefJs(java.lang.String homePage)
           
protected  java.io.File getFileFromParent(java.io.File parent, java.lang.String child)
           
 java.lang.Process getProcess()
           
protected  java.io.File initProfileTemplate()
           
protected  void killFirefoxProcess()
          Wrapper to allow for stubbed-out testing *
protected  void launch(java.lang.String url)
           
 void launchHTMLSuite(java.lang.String suiteUrl, java.lang.String browserURL)
           
 void launchRemoteSession(java.lang.String browserURL)
           
protected  CommandLine prepareCommand(java.lang.String... commands)
           
protected  void removeCustomProfileDir()
          Wrapper to allow for stubbed-out testing *
protected  void setCommandLine(CommandLine p)
           
protected  void setCustomProfileDir(java.io.File value)
           
 
Methods inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
getCommandLineFlags, getConfiguration, getPort, getTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FirefoxChromeLauncher

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

FirefoxChromeLauncher

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

launch

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

prepareCommand

protected CommandLine prepareCommand(java.lang.String... commands)

createCustomProfileDir

protected void createCustomProfileDir()

copyDirectory

protected void copyDirectory(java.io.File sourceDir,
                             java.io.File destDir)

initProfileTemplate

protected java.io.File initProfileTemplate()

extractProfileFromJar

protected void extractProfileFromJar()
                              throws java.io.IOException
Throws:
java.io.IOException

copySingleFileWithOverwrite

protected void copySingleFileWithOverwrite(java.io.File sourceFile,
                                           java.io.File destFile)

getFileFromParent

protected java.io.File getFileFromParent(java.io.File parent,
                                         java.lang.String child)

copyCert8db

protected void copyCert8db(java.io.File firefoxProfileTemplate)

generatePacAndPrefJs

protected void generatePacAndPrefJs(java.lang.String homePage)
                             throws java.io.IOException
Throws:
java.io.IOException

close

public void close()

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

setCustomProfileDir

protected void setCustomProfileDir(java.io.File value)

setCommandLine

protected void setCommandLine(CommandLine p)

launchHTMLSuite

public void launchHTMLSuite(java.lang.String suiteUrl,
                            java.lang.String browserURL)
Specified by:
launchHTMLSuite in interface BrowserLauncher
Overrides:
launchHTMLSuite in class AbstractBrowserLauncher

launchRemoteSession

public void launchRemoteSession(java.lang.String browserURL)
Specified by:
launchRemoteSession in interface BrowserLauncher
Overrides:
launchRemoteSession in class AbstractBrowserLauncher


Copyright © 2011. All Rights Reserved.