public static class ChromeDriverService.Builder extends Object
ChromeDriverService
instances.Constructor and Description |
---|
ChromeDriverService.Builder() |
Modifier and Type | Method and Description |
---|---|
ChromeDriverService |
build()
Creates a new service to manage the driver server.
|
ChromeDriverService.Builder |
usingAnyFreePort()
Configures the driver server to start on any available port.
|
ChromeDriverService.Builder |
usingDriverExecutable(File file)
Sets which driver executable the builder will use.
|
ChromeDriverService.Builder |
usingPort(int port)
Sets which port the driver server should be started on.
|
ChromeDriverService.Builder |
withEnvironment(Map<String,String> environment)
Defines the environment for the launched driver server.
|
ChromeDriverService.Builder |
withLogFile(File logFile)
Configures the driver server to write log to the given file.
|
public ChromeDriverService.Builder usingDriverExecutable(File file)
file
- The executable to use.public ChromeDriverService.Builder usingPort(int port)
port
- The port to use; must be non-negative.public ChromeDriverService.Builder usingAnyFreePort()
@Beta public ChromeDriverService.Builder withEnvironment(Map<String,String> environment)
environment
- A map of the environment variables to launch the
server with.public ChromeDriverService.Builder withLogFile(File logFile)
logFile
- A file to write log to.public ChromeDriverService build()
Copyright © 2013. All rights reserved.