public class FirefoxChromeLauncher extends AbstractBrowserLauncher
Modifier and Type | Class and Description |
---|---|
static class |
FirefoxChromeLauncher.ChromeUrlConvert |
browserConfigurationOptions, sessionId
Constructor and Description |
---|
FirefoxChromeLauncher(org.openqa.selenium.Capabilities browserOptions,
RemoteControlConfiguration configuration,
String sessionId,
org.openqa.selenium.browserlaunchers.locators.BrowserInstallation browserInstallation) |
FirefoxChromeLauncher(org.openqa.selenium.Capabilities browserOptions,
RemoteControlConfiguration configuration,
String sessionId,
String browserString) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stop (kill) the browser process
|
protected void |
copyCert8db(File firefoxProfileTemplate) |
protected void |
copyDirectory(File sourceDir,
File destDir) |
protected void |
copySingleFileWithOverwrite(File sourceFile,
File destFile) |
protected void |
createCustomProfileDir() |
protected void |
extractProfileFromJar() |
protected void |
generatePacAndPrefJs(String homePage) |
protected File |
getFileFromParent(File parent,
String child) |
protected File |
initProfileTemplate() |
protected void |
killFirefoxProcess()
Wrapper to allow for stubbed-out testing *
|
protected void |
launch(String url) |
void |
launchHTMLSuite(String suiteUrl,
String browserURL)
Start the browser in Selenese mode, auto-running the specified HTML suite
|
void |
launchRemoteSession(String browserURL)
Start the browser and navigate directly to the specified URL using the supplied browser
configurations
|
protected org.openqa.selenium.os.CommandLine |
prepareCommand(String... commands) |
protected void |
removeCustomProfileDir()
Wrapper to allow for stubbed-out testing *
|
protected void |
setCommandLine(org.openqa.selenium.os.CommandLine p) |
protected void |
setCustomProfileDir(File value) |
getCommandLineFlagsAsArray, getConfiguration, getPort, getTimeout
public FirefoxChromeLauncher(org.openqa.selenium.Capabilities browserOptions, RemoteControlConfiguration configuration, String sessionId, String browserString) throws InvalidBrowserExecutableException
public FirefoxChromeLauncher(org.openqa.selenium.Capabilities browserOptions, RemoteControlConfiguration configuration, String sessionId, org.openqa.selenium.browserlaunchers.locators.BrowserInstallation browserInstallation)
protected void launch(String url)
launch
in class AbstractBrowserLauncher
protected org.openqa.selenium.os.CommandLine prepareCommand(String... commands)
protected void createCustomProfileDir()
protected File initProfileTemplate()
protected void extractProfileFromJar() throws IOException
IOException
protected void copySingleFileWithOverwrite(File sourceFile, File destFile)
protected void copyCert8db(File firefoxProfileTemplate)
protected void generatePacAndPrefJs(String homePage) throws IOException
IOException
public void close()
BrowserLauncher
protected void removeCustomProfileDir() throws RuntimeException
RuntimeException
protected void killFirefoxProcess()
protected void setCustomProfileDir(File value)
protected void setCommandLine(org.openqa.selenium.os.CommandLine p)
public void launchHTMLSuite(String suiteUrl, String browserURL)
BrowserLauncher
launchHTMLSuite
in interface BrowserLauncher
launchHTMLSuite
in class AbstractBrowserLauncher
suiteUrl
- the url of the HTML suite to launchbrowserURL
- the url within which to initiate the session (if needed)public void launchRemoteSession(String browserURL)
BrowserLauncher
launchRemoteSession
in interface BrowserLauncher
launchRemoteSession
in class AbstractBrowserLauncher
browserURL
- URLCopyright © 2015. All rights reserved.