public class ChromeDriverService extends DriverService
Modifier and Type | Class and Description |
---|---|
static class |
ChromeDriverService.Builder
Builder used to configure new
ChromeDriverService instances. |
Modifier and Type | Field and Description |
---|---|
static String |
CHROME_DRIVER_EXE_PROPERTY
System property that defines the location of the chromedriver executable that will be used by
the
default service . |
static String |
CHROME_DRIVER_LOG_PROPERTY
System property that defines the location of the log that will be written by
the
default service . |
static String |
CHROME_DRIVER_SILENT_OUTPUT_PROPERTY
Boolean system property that defines whether the ChromeDriver executable should be started
in silent mode.
|
static String |
CHROME_DRIVER_VERBOSE_LOG_PROPERTY
Boolean system property that defines whether the ChromeDriver executable should be started
with verbose logging.
|
static String |
CHROME_DRIVER_WHITELISTED_IPS_PROPERTY
System property that defines comma-separated list of remote IPv4 addresses which are
allowed to connect to ChromeDriver.
|
Constructor and Description |
---|
ChromeDriverService(File executable,
int port,
com.google.common.collect.ImmutableList<String> args,
com.google.common.collect.ImmutableMap<String,String> environment) |
Modifier and Type | Method and Description |
---|---|
static ChromeDriverService |
createDefaultService()
Configures and returns a new
ChromeDriverService using the default configuration. |
checkExecutable, findExecutable, getUrl, isRunning, start, stop, waitUntilAvailable
public static final String CHROME_DRIVER_EXE_PROPERTY
default service
.public static final String CHROME_DRIVER_LOG_PROPERTY
default service
.public static final String CHROME_DRIVER_VERBOSE_LOG_PROPERTY
public static final String CHROME_DRIVER_SILENT_OUTPUT_PROPERTY
public static final String CHROME_DRIVER_WHITELISTED_IPS_PROPERTY
public ChromeDriverService(File executable, int port, com.google.common.collect.ImmutableList<String> args, com.google.common.collect.ImmutableMap<String,String> environment) throws IOException
executable
- The chromedriver executable.port
- Which port to start the chromedriver on.args
- The arguments to the launched server.environment
- The environment for the launched server.IOException
- If an I/O error occurs.public static ChromeDriverService createDefaultService()
ChromeDriverService
using the default configuration. In
this configuration, the service will use the chromedriver executable identified by the
CHROME_DRIVER_EXE_PROPERTY
system property. Each service created by this method will
be configured to use a free port on the current system.Copyright © 2016. All rights reserved.