public class FirefoxChromeLauncher extends AbstractBrowserLauncher
| Modifier and Type | Class and Description |
|---|---|
static class |
FirefoxChromeLauncher.ChromeUrlConvert |
protected class |
FirefoxChromeLauncher.FileLockRemainedException |
| Modifier and Type | Field and Description |
|---|---|
static String |
CHROME_URL |
browserConfigurationOptions, sessionId| Constructor and Description |
|---|
FirefoxChromeLauncher(BrowserConfigurationOptions browserOptions,
RemoteControlConfiguration configuration,
String sessionId,
BrowserInstallation browserInstallation) |
FirefoxChromeLauncher(BrowserConfigurationOptions 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) |
Process |
getProcess()
Returns a process if there is an associated one running with this browser launcher (this is not required to be implementd).
|
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 void |
removeCustomProfileDir()
Wrapper to allow for stubbed-out testing
|
protected void |
setCustomProfileDir(File value) |
protected void |
setProcess(Process p) |
getConfiguration, getPortpublic static final String CHROME_URL
public FirefoxChromeLauncher(BrowserConfigurationOptions browserOptions, RemoteControlConfiguration configuration, String sessionId, String browserString) throws InvalidBrowserExecutableException
public FirefoxChromeLauncher(BrowserConfigurationOptions browserOptions, RemoteControlConfiguration configuration, String sessionId, BrowserInstallation browserInstallation)
protected void launch(String url)
launch in class AbstractBrowserLauncherprotected void createCustomProfileDir()
protected File initProfileTemplate()
protected void extractProfileFromJar()
throws IOException
IOExceptionprotected void copySingleFileWithOverwrite(File sourceFile, File destFile)
protected void copyCert8db(File firefoxProfileTemplate)
protected void generatePacAndPrefJs(String homePage) throws IOException
IOExceptionpublic void close()
BrowserLauncherprotected void removeCustomProfileDir()
throws RuntimeException
RuntimeExceptionprotected void killFirefoxProcess()
throws FirefoxChromeLauncher.FileLockRemainedException
public Process getProcess()
BrowserLauncherprotected void setCustomProfileDir(File value)
protected void setProcess(Process p)
public void launchHTMLSuite(String suiteUrl, String browserURL)
BrowserLauncherlaunchHTMLSuite in interface BrowserLauncherlaunchHTMLSuite in class AbstractBrowserLaunchersuiteUrl - the url of the HTML suite to launchbrowserURL - the url within which to initiate the session (if needed)public void launchRemoteSession(String browserURL)
BrowserLauncherlaunchRemoteSession in interface BrowserLauncherlaunchRemoteSession in class AbstractBrowserLauncherCopyright © 2012. All Rights Reserved.