public class GeckoDriverServiceEx
extends org.openqa.selenium.firefox.GeckoDriverService
Manages the life and death of an GeckoDriver aka 'wires'.
Modifier and Type | Class and Description |
---|---|
static class |
GeckoDriverServiceEx.Builder
Builder used to configure new
GeckoDriverServiceEx instances. |
Constructor and Description |
---|
GeckoDriverServiceEx(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 GeckoDriverServiceEx |
createDefaultService()
Configures and returns a new
GeckoDriverServiceEx using the default configuration. |
public GeckoDriverServiceEx(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 GeckoDriverServiceEx createDefaultService()
GeckoDriverServiceEx
using the default configuration. In
this configuration, the service will use the GeckoDriver executable identified by the
GeckoDriverService.GECKO_DRIVER_EXE_PROPERTY
system property. Each service created by this method will
be configured to use a free port on the current system.