public class PhantomJSDriverBinaryHandler extends AbstractBinaryHandler
ExternalBinarySource| Modifier and Type | Field and Description |
|---|---|
static String |
PHANTOMJS_BINARY_URL_PROPERTY |
static String |
PHANTOMJS_BINARY_VERSION_PROPERTY |
DOWNLOAD_BINARIES_PROPERTY| Constructor and Description |
|---|
PhantomJSDriverBinaryHandler(org.openqa.selenium.remote.DesiredCapabilities capabilities) |
| Modifier and Type | Method and Description |
|---|---|
String |
checkAndSetBinary(boolean performExecutableValidations)
Checks system properties and capabilities, whether a path to binary is already set there
(see
AbstractBinaryHandler.getSystemBinaryProperty() and AbstractBinaryHandler.getBinaryProperty() ). |
String |
checkAndSetBinaryWithoutResolve() |
protected String |
getArquillianCacheSubdirectory()
Name of the subdirectory that should be used for this binary handler in the Drone cache directory
($HOME/.arquillian/drone) |
protected String |
getBinaryProperty()
This method should return a capability property name which a path to an executable binary could be stored under
|
protected org.openqa.selenium.remote.DesiredCapabilities |
getCapabilities()
This method should return a desired capabilities with stored properties
|
protected String |
getDesiredVersionProperty()
This method should return a capability property name which a desired version of a binary could be stored under
|
protected ExternalBinarySource |
getExternalBinarySource()
This method should return an instance of an
ExternalBinary that should be used for retrieving available
releases of a binary |
String |
getSystemBinaryProperty()
This method should return a system property name which a path to an executable binary should be stored under
|
protected String |
getUrlToDownloadProperty()
This method should return a capability property name which a url pointing to a desired binary could be stored under
|
downloadAndPrepare, downloadAndPrepare, downloadAndPrepare, markAsExecutable, setBinaryAsSystemPropertypublic static final String PHANTOMJS_BINARY_VERSION_PROPERTY
public static final String PHANTOMJS_BINARY_URL_PROPERTY
public PhantomJSDriverBinaryHandler(org.openqa.selenium.remote.DesiredCapabilities capabilities)
public String checkAndSetBinary(boolean performExecutableValidations)
AbstractBinaryHandlerAbstractBinaryHandler.getSystemBinaryProperty() and AbstractBinaryHandler.getBinaryProperty() ).
If not and the downloading is not set off (AbstractBinaryHandler.DOWNLOAD_BINARIES_PROPERTY), then the
binary is downloaded. Resulting binary is then set as system property that is returned by the method
AbstractBinaryHandler.getSystemBinaryProperty()checkAndSetBinary in interface BinaryHandlercheckAndSetBinary in class AbstractBinaryHandlerperformExecutableValidations - If it should be checked whether the binary points to an executable file.public String checkAndSetBinaryWithoutResolve()
protected String getBinaryProperty()
AbstractBinaryHandlergetBinaryProperty in class AbstractBinaryHandlerpublic String getSystemBinaryProperty()
AbstractBinaryHandlergetSystemBinaryProperty in interface BinaryHandlergetSystemBinaryProperty in class AbstractBinaryHandlerprotected String getArquillianCacheSubdirectory()
AbstractBinaryHandler($HOME/.arquillian/drone)getArquillianCacheSubdirectory in class AbstractBinaryHandlerprotected String getDesiredVersionProperty()
AbstractBinaryHandlergetDesiredVersionProperty in class AbstractBinaryHandlerprotected String getUrlToDownloadProperty()
AbstractBinaryHandlergetUrlToDownloadProperty in class AbstractBinaryHandlerprotected ExternalBinarySource getExternalBinarySource()
AbstractBinaryHandlerExternalBinary that should be used for retrieving available
releases of a binarygetExternalBinarySource in class AbstractBinaryHandlerExternalBinary that should be used for retrieving available releases of a binaryprotected org.openqa.selenium.remote.DesiredCapabilities getCapabilities()
AbstractBinaryHandlergetCapabilities in class AbstractBinaryHandlerCopyright © 2017 JBoss by Red Hat. All rights reserved.