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 |
CHROME_URL
public static final java.lang.String CHROME_URL
- See Also:
- Constant Field Values
FirefoxChromeLauncher
public FirefoxChromeLauncher(BrowserConfigurationOptions browserOptions,
RemoteControlConfiguration configuration,
java.lang.String sessionId,
java.lang.String browserString)
throws InvalidBrowserExecutableException
- Throws:
InvalidBrowserExecutableException
FirefoxChromeLauncher
public FirefoxChromeLauncher(BrowserConfigurationOptions browserOptions,
RemoteControlConfiguration configuration,
java.lang.String sessionId,
BrowserInstallation browserInstallation)
launch
protected void launch(java.lang.String url)
- Specified by:
launch
in class AbstractBrowserLauncher
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()
- 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)
launchHTMLSuite
public void launchHTMLSuite(java.lang.String suiteUrl,
java.lang.String browserURL)
- 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 of the HTML suite to launchbrowserURL
- the url within which to initiate the session (if needed)
launchRemoteSession
public void launchRemoteSession(java.lang.String browserURL)
- 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
Copyright © 2009. All Rights Reserved.