public static class PhantomJSDriverService.Builder
extends java.lang.Object
PhantomJSDriverService instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PhantomJSDriverService |
build()
Creates a new service.
|
PhantomJSDriverService.Builder |
usingAnyFreePort()
Configures the service to listen on any available port.
|
PhantomJSDriverService.Builder |
usingCommandLineArguments(java.lang.String[] commandLineArguments)
Configures the service to pass additional command line arguments to the PhantomJS executable.
|
PhantomJSDriverService.Builder |
usingGhostDriver(java.io.File file)
Sets which GhostDriver the builder will use.
|
PhantomJSDriverService.Builder |
usingGhostDriverCommandLineArguments(java.lang.String[] ghostdriverCommandLineArguments)
Configures the service to pass additional command line arguments to GhostDriver, run by PhantomJS executable.
|
PhantomJSDriverService.Builder |
usingPhantomJSExecutable(java.io.File file)
Sets which PhantomJS executable the builder will use.
|
PhantomJSDriverService.Builder |
usingPort(int port)
Sets which port the service should listen on.
|
PhantomJSDriverService.Builder |
withEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
Defines the environment for the service.
|
PhantomJSDriverService.Builder |
withLogFile(java.io.File logFile)
Configures the service to write log to the given file.
|
PhantomJSDriverService.Builder |
withProxy(org.openqa.selenium.Proxy proxy)
Configures the service to use a specific Proxy configuration.
|
public PhantomJSDriverService.Builder usingPhantomJSExecutable(java.io.File file)
file - The executable to use.public PhantomJSDriverService.Builder usingGhostDriver(java.io.File file)
file - The GhostDriver's main.js to use.public PhantomJSDriverService.Builder usingPort(int port)
port - The port to use; must be non-negative.public PhantomJSDriverService.Builder usingAnyFreePort()
public PhantomJSDriverService.Builder withEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
environment - A map of the environment variables to launch the service with.public PhantomJSDriverService.Builder withLogFile(java.io.File logFile)
logFile - A file to write log to.public PhantomJSDriverService.Builder withProxy(org.openqa.selenium.Proxy proxy)
proxy - The Proxy configuration from the DesiredCapabilitiespublic PhantomJSDriverService.Builder usingCommandLineArguments(java.lang.String[] commandLineArguments)
commandLineArguments - list of command line arguments, e.g. "--ignore-ssl-errors=yes"public PhantomJSDriverService.Builder usingGhostDriverCommandLineArguments(java.lang.String[] ghostdriverCommandLineArguments)
ghostdriverCommandLineArguments - list of command line arguments for GhostDriverpublic PhantomJSDriverService build()