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:
- org.openqa.selenium.browserlaunchers.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,
String sessionId,
String browserString)
throws InvalidBrowserExecutableException
- Throws:
InvalidBrowserExecutableException
FirefoxChromeLauncher
public FirefoxChromeLauncher(Capabilities browserOptions,
RemoteControlConfiguration configuration,
String sessionId,
org.openqa.selenium.browserlaunchers.locators.BrowserInstallation browserInstallation)
launch
protected void launch(String url)
- Specified by:
launch
in class AbstractBrowserLauncher
prepareCommand
protected org.openqa.selenium.os.CommandLine prepareCommand(String... commands)
createCustomProfileDir
protected void createCustomProfileDir()
copyDirectory
protected void copyDirectory(File sourceDir,
File destDir)
initProfileTemplate
protected File initProfileTemplate()
extractProfileFromJar
protected void extractProfileFromJar()
throws IOException
- Throws:
IOException
copySingleFileWithOverwrite
protected void copySingleFileWithOverwrite(File sourceFile,
File destFile)
getFileFromParent
protected File getFileFromParent(File parent,
String child)
copyCert8db
protected void copyCert8db(File firefoxProfileTemplate)
generatePacAndPrefJs
protected void generatePacAndPrefJs(String homePage)
throws IOException
- Throws:
IOException
close
public void close()
removeCustomProfileDir
protected void removeCustomProfileDir()
throws RuntimeException
- Wrapper to allow for stubbed-out testing *
- Throws:
RuntimeException
killFirefoxProcess
protected void killFirefoxProcess()
throws FirefoxChromeLauncher.FileLockRemainedException
- Wrapper to allow for stubbed-out testing *
- Throws:
FirefoxChromeLauncher.FileLockRemainedException
setCustomProfileDir
protected void setCustomProfileDir(File value)
setCommandLine
protected void setCommandLine(org.openqa.selenium.os.CommandLine p)
launchHTMLSuite
public void launchHTMLSuite(String suiteUrl,
String browserURL)
- Specified by:
launchHTMLSuite
in interface org.openqa.selenium.browserlaunchers.BrowserLauncher
- Overrides:
launchHTMLSuite
in class AbstractBrowserLauncher
launchRemoteSession
public void launchRemoteSession(String browserURL)
- Specified by:
launchRemoteSession
in interface org.openqa.selenium.browserlaunchers.BrowserLauncher
- Overrides:
launchRemoteSession
in class AbstractBrowserLauncher
Copyright © 2012. All Rights Reserved.