public class ChromeDriverService extends DriverService
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ChromeDriverService.Builder
Builder used to configure new
ChromeDriverService instances. |
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
| 构造器和说明 |
|---|
ChromeDriverService(File executable,
int port,
com.google.common.collect.ImmutableList<String> args,
com.google.common.collect.ImmutableMap<String,String> environment) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ChromeDriverService |
createDefaultService()
Configures and returns a new
ChromeDriverService using the default configuration. |
getUrl, isRunning, start, stoppublic 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 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.