public class ResolvingPhantomJSDriverService
extends org.openqa.selenium.remote.service.DriverService
| Modifier and Type | Method and Description |
|---|---|
static org.openqa.selenium.remote.service.DriverService |
createDefaultService()
Creates a new service with phantomjs binary from PATH; if there is no phantomjs on PATH, binary will be resolved to
temporary location
|
static org.openqa.selenium.remote.service.DriverService |
createDefaultService(org.openqa.selenium.Capabilities capabilities)
If
ResolverConfiguration.PREFER_RESOLVED capability is set to true, the phantomjs binary will be always resolved
automatically to temporary location. |
public static org.openqa.selenium.remote.service.DriverService createDefaultService()
throws IOException
IOExceptionpublic static org.openqa.selenium.remote.service.DriverService createDefaultService(org.openqa.selenium.Capabilities capabilities)
throws IOException
ResolverConfiguration.PREFER_RESOLVED capability is set to true, the phantomjs binary will be always resolved
automatically to temporary location.
In opposite case, service will first check whether there is executable phantomjs binary on PATH and fallbacks to its
automatic resolution.
See ResolverConfiguration for list of capabilities which can be set in order to change behavior of resolver.IOExceptionCopyright © 2014 JBoss by Red Hat. All Rights Reserved.