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 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(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 GeckoDriverService |
createDefaultService()
Configures and returns a new
GeckoDriverService using the default configuration. |
protected void |
waitUntilAvailable() |
checkExecutable, findExecutable, 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.protected void waitUntilAvailable()
throws MalformedURLException
waitUntilAvailable in class DriverServiceMalformedURLExceptionCopyright © 2016. All rights reserved.