|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.phantomjs.PhantomJSDriverService.Builder
public static class PhantomJSDriverService.Builder
Builder used to configure new PhantomJSDriverService
instances.
Constructor Summary | |
---|---|
PhantomJSDriverService.Builder()
|
Method Summary | |
---|---|
PhantomJSDriverService |
build()
Creates a new service. |
PhantomJSDriverService.Builder |
usingAnyFreePort()
Configures the service to listen on any available port. |
PhantomJSDriverService.Builder |
usingGhostDriver(java.io.File file)
Sets which GhostDriver the builder will use. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhantomJSDriverService.Builder()
Method Detail |
---|
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 DesiredCapabilities
public PhantomJSDriverService build()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |