public class PhantomJsDownloader extends Object
| Modifier | Constructor and Description |
|---|---|
|
PhantomJsDownloader() |
protected |
PhantomJsDownloader(int retry) |
protected |
PhantomJsDownloader(int retry,
boolean isWindows,
boolean isMac) |
| Modifier and Type | Method and Description |
|---|---|
protected org.openqa.selenium.WebDriver |
createNewDriver() |
protected org.openqa.selenium.WebDriver |
createNewPhantomJsDriver(File phantomJsExe) |
protected org.openqa.selenium.WebDriver |
disableQuit(org.openqa.selenium.phantomjs.PhantomJSDriver driver) |
protected File |
downloadAndExtract() |
protected void |
downloadZip(String url,
File targetZip) |
protected void |
executeNative(File workingDir,
String... commands) |
protected void |
extractExe(String url,
File phantomInstallDir,
File phantomJsExe) |
protected Class[] |
findInterfaces(Class<?> type) |
org.openqa.selenium.WebDriver |
getDriverForThread() |
protected void |
unzip(File zip,
File toDir) |
public PhantomJsDownloader()
protected PhantomJsDownloader(int retry)
protected PhantomJsDownloader(int retry,
boolean isWindows,
boolean isMac)
public org.openqa.selenium.WebDriver getDriverForThread()
protected org.openqa.selenium.WebDriver createNewDriver()
protected org.openqa.selenium.WebDriver createNewPhantomJsDriver(File phantomJsExe)
protected org.openqa.selenium.WebDriver disableQuit(org.openqa.selenium.phantomjs.PhantomJSDriver driver)
protected File downloadAndExtract()
protected void unzip(File zip, File toDir) throws IOException
IOExceptionprotected void executeNative(File workingDir, String... commands) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2014. All Rights Reserved.