org.openqa.selenium.server.browserlaunchers
Class FirefoxChromeLauncher
java.lang.Object
org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher
- All Implemented Interfaces:
- BrowserLauncher
- Direct Known Subclasses:
- Firefox2Launcher, Firefox3Launcher
public class FirefoxChromeLauncher
- extends AbstractBrowserLauncher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.