|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.chrome.ChromeDriverService.Builder
public static class ChromeDriverService.Builder
Builder used to configure new ChromeDriverService
instances.
Constructor Summary | |
---|---|
ChromeDriverService.Builder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChromeDriverService.Builder()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |