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