|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher
public class FirefoxChromeLauncher
Nested Class Summary | |
---|---|
static class |
FirefoxChromeLauncher.ChromeUrlConvert
|
protected class |
FirefoxChromeLauncher.FileLockRemainedException
|
Field Summary |
---|
Fields inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher |
---|
browserConfigurationOptions, sessionId |
Constructor Summary | |
---|---|
FirefoxChromeLauncher(BrowserConfigurationOptions browserOptions,
RemoteControlConfiguration configuration,
java.lang.String sessionId,
BrowserInstallation browserInstallation)
|
|
FirefoxChromeLauncher(BrowserConfigurationOptions browserOptions,
RemoteControlConfiguration configuration,
java.lang.String sessionId,
java.lang.String browserString)
|
Method Summary | |
---|---|
void |
close()
Stop (kill) the browser process |
protected void |
copyCert8db(java.io.File firefoxProfileTemplate)
|
protected void |
copyDirectory(java.io.File sourceDir,
java.io.File destDir)
|
protected void |
copySingleFileWithOverwrite(java.io.File sourceFile,
java.io.File destFile)
|
protected void |
createCustomProfileDir()
|
protected void |
extractProfileFromJar()
|
protected void |
generatePacAndPrefJs(java.lang.String homePage)
|
protected java.io.File |
getFileFromParent(java.io.File parent,
java.lang.String child)
|
java.lang.Process |
getProcess()
Returns a process if there is an associated one running with this browser launcher (this is not required to be implementd). |
protected java.io.File |
initProfileTemplate()
|
protected void |
killFirefoxProcess()
Wrapper to allow for stubbed-out testing * |
protected void |
launch(java.lang.String url)
|
void |
launchHTMLSuite(java.lang.String suiteUrl,
java.lang.String browserURL)
Start the browser in Selenese mode, auto-running the specified HTML suite |
void |
launchRemoteSession(java.lang.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(java.io.File value)
|
protected void |
setProcess(java.lang.Process p)
|
Methods inherited from class org.openqa.selenium.server.browserlaunchers.AbstractBrowserLauncher |
---|
getCommandLineFlags, getConfiguration, getPort, getTimeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FirefoxChromeLauncher(BrowserConfigurationOptions browserOptions, RemoteControlConfiguration configuration, java.lang.String sessionId, java.lang.String browserString) throws InvalidBrowserExecutableException
InvalidBrowserExecutableException
public FirefoxChromeLauncher(BrowserConfigurationOptions browserOptions, RemoteControlConfiguration configuration, java.lang.String sessionId, BrowserInstallation browserInstallation)
Method Detail |
---|
protected void launch(java.lang.String url)
launch
in class AbstractBrowserLauncher
protected void createCustomProfileDir()
protected void copyDirectory(java.io.File sourceDir, java.io.File destDir)
protected java.io.File initProfileTemplate()
protected void extractProfileFromJar() throws java.io.IOException
java.io.IOException
protected void copySingleFileWithOverwrite(java.io.File sourceFile, java.io.File destFile)
protected java.io.File getFileFromParent(java.io.File parent, java.lang.String child)
protected void copyCert8db(java.io.File firefoxProfileTemplate)
protected void generatePacAndPrefJs(java.lang.String homePage) throws java.io.IOException
java.io.IOException
public void close()
BrowserLauncher
protected void removeCustomProfileDir() throws java.lang.RuntimeException
java.lang.RuntimeException
protected void killFirefoxProcess() throws FirefoxChromeLauncher.FileLockRemainedException
FirefoxChromeLauncher.FileLockRemainedException
public java.lang.Process getProcess()
BrowserLauncher
protected void setCustomProfileDir(java.io.File value)
protected void setProcess(java.lang.Process p)
public void launchHTMLSuite(java.lang.String suiteUrl, java.lang.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(java.lang.String browserURL)
BrowserLauncher
launchRemoteSession
in interface BrowserLauncher
launchRemoteSession
in class AbstractBrowserLauncher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |