|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.selenium.server.browserlaunchers.LauncherUtils
public class LauncherUtils
Various static utility functions used to launch browsers
| Constructor Summary | |
|---|---|
LauncherUtils()
|
|
| Method Summary | |
|---|---|
protected static void |
assertNotScriptFile(java.io.File f)
|
protected static void |
copyDirectory(java.io.File source,
java.io.File dest)
|
protected static java.io.File |
createCustomProfileDir(java.lang.String sessionId)
creates an empty temp directory for managing a browser profile |
protected static void |
deleteTryTryAgain(java.io.File dir,
int tries)
Try several times to recursively delete a directory |
protected static java.io.File |
extractHTAFile(java.io.File dir,
int port,
java.lang.String resourceFile,
java.lang.String outFile)
|
protected static void |
generatePacAndPrefJs(java.io.File customProfileDir,
int port,
boolean proxySeleniumTrafficOnly)
|
protected static void |
generatePacAndPrefJs(java.io.File customProfileDir,
int port,
boolean proxySeleniumTrafficOnly,
java.lang.String homePage)
|
protected static java.lang.String |
getDefaultHTMLSuiteUrl(java.lang.String browserURL,
java.lang.String suiteUrl,
boolean multiWindow)
|
protected static java.lang.String |
getDefaultRemoteSessionUrl(java.lang.String startURL,
java.lang.String sessionId,
boolean multiWindow)
|
protected static java.lang.String |
getQueryString(java.lang.String url)
|
protected static java.io.File |
makeProxyPAC(java.io.File parentDir,
int port)
Generate a proxy.pac file, configuring a dynamic proxy for URLs containing "/selenium-server/" |
protected static java.io.File |
makeProxyPAC(java.io.File parentDir,
int port,
boolean proxySeleniumTrafficOnly)
Generate a proxy.pac file, configuring a dynamic proxy. |
protected static void |
recursivelyDeleteDir(java.io.File customProfileDir)
Delete a directory and all subdirectories |
static java.lang.String |
stripStartURL(java.lang.String url)
Strips the specified URL so it only includes a protocal, hostname and port |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LauncherUtils()
| Method Detail |
|---|
protected static java.io.File createCustomProfileDir(java.lang.String sessionId)
protected static void recursivelyDeleteDir(java.io.File customProfileDir)
protected static void deleteTryTryAgain(java.io.File dir,
int tries)
protected static java.io.File makeProxyPAC(java.io.File parentDir,
int port)
throws java.io.FileNotFoundException
java.io.FileNotFoundException
protected static java.io.File makeProxyPAC(java.io.File parentDir,
int port,
boolean proxySeleniumTrafficOnly)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic static java.lang.String stripStartURL(java.lang.String url)
java.net.MalformedURLExceptionprotected static java.lang.String getQueryString(java.lang.String url)
protected static java.lang.String getDefaultHTMLSuiteUrl(java.lang.String browserURL,
java.lang.String suiteUrl,
boolean multiWindow)
protected static java.lang.String getDefaultRemoteSessionUrl(java.lang.String startURL,
java.lang.String sessionId,
boolean multiWindow)
protected static java.io.File extractHTAFile(java.io.File dir,
int port,
java.lang.String resourceFile,
java.lang.String outFile)
protected static void assertNotScriptFile(java.io.File f)
protected static void copyDirectory(java.io.File source,
java.io.File dest)
protected static void generatePacAndPrefJs(java.io.File customProfileDir,
int port,
boolean proxySeleniumTrafficOnly)
throws java.io.FileNotFoundException
java.io.FileNotFoundException
protected static void generatePacAndPrefJs(java.io.File customProfileDir,
int port,
boolean proxySeleniumTrafficOnly,
java.lang.String homePage)
throws java.io.FileNotFoundException
java.io.FileNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||