public class GeckoDriverService extends DriverService
Modifier and Type | Class and Description |
---|---|
static class |
GeckoDriverService.Builder
Builder used to configure new
GeckoDriverService instances. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GECKO_DRIVER_EXE_PROPERTY
System property that defines the location of the GeckoDriver executable
that will be used by the
default service . |
Constructor and Description |
---|
GeckoDriverService(java.io.File executable,
int port,
com.google.common.collect.ImmutableList<java.lang.String> args,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> environment) |
Modifier and Type | Method and Description |
---|---|
static GeckoDriverService |
createDefaultService()
Configures and returns a new
GeckoDriverService using the default configuration. |
protected void |
waitUntilAvailable() |
checkExecutable, findExecutable, getUrl, isRunning, start, stop
public static final java.lang.String GECKO_DRIVER_EXE_PROPERTY
default service
.public GeckoDriverService(java.io.File executable, int port, com.google.common.collect.ImmutableList<java.lang.String> args, com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> environment) throws java.io.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.java.io.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.protected void waitUntilAvailable() throws java.net.MalformedURLException
waitUntilAvailable
in class DriverService
java.net.MalformedURLException