public class GeckoDriverService extends DriverService
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GeckoDriverService.Builder
Builder used to configure new
GeckoDriverService instances. |
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
GECKO_DRIVER_EXE_PROPERTY
System property that defines the location of the GeckoDriver executable
that will be used by the
default service. |
| 构造器和说明 |
|---|
GeckoDriverService(File executable,
int port,
com.google.common.collect.ImmutableList<String> args,
com.google.common.collect.ImmutableMap<String,String> environment) |
| 限定符和类型 | 方法和说明 |
|---|---|
static GeckoDriverService |
createDefaultService()
Configures and returns a new
GeckoDriverService using the default configuration. |
getUrl, isRunning, start, stoppublic static final String GECKO_DRIVER_EXE_PROPERTY
default service.public GeckoDriverService(File executable, int port, com.google.common.collect.ImmutableList<String> args, com.google.common.collect.ImmutableMap<String,String> environment) throws IOException
executable - The GeckoDriver executable.port - Which port to start the GeckoDriver on.args - The arguments to the launched server.environment - The environment for the launched server.IOException - If an I/O error occurs.public static GeckoDriverService createDefaultService()
GeckoDriverService using the default configuration. In
this configuration, the service will use the GeckoDriver executable identified by the
GECKO_DRIVER_EXE_PROPERTY system property. Each service created by this method will
be configured to use a free port on the current system.