public class ResolvingPhantomJSDriverService
extends org.openqa.selenium.remote.service.DriverService
| Modifier and Type | Method and Description |
|---|---|
static org.openqa.selenium.phantomjs.PhantomJSDriverService |
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.phantomjs.PhantomJSDriverService |
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. |
protected static void |
reformatCLIArgumentsInCapToArray(org.openqa.selenium.remote.DesiredCapabilities capabilities)
Reformats
PhantomJSDriverService.PHANTOMJS_CLI_ARGS and
PhantomJSDriverService.PHANTOMJS_GHOSTDRIVER_CLI_ARGS from String to String[] |
public static org.openqa.selenium.phantomjs.PhantomJSDriverService createDefaultService()
throws IOException
IOExceptionpublic static org.openqa.selenium.phantomjs.PhantomJSDriverService 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.IOExceptionprotected static void reformatCLIArgumentsInCapToArray(org.openqa.selenium.remote.DesiredCapabilities capabilities)
PhantomJSDriverService.PHANTOMJS_CLI_ARGS and
PhantomJSDriverService.PHANTOMJS_GHOSTDRIVER_CLI_ARGS from String to String[]capabilities - CapabilitiesCopyright © 2016 JBoss by Red Hat. All rights reserved.