public class XpiDriverService extends DriverService
Modifier and Type | Class and Description |
---|---|
static class |
XpiDriverService.Builder |
Modifier and Type | Method and Description |
---|---|
static XpiDriverService.Builder |
builder() |
static XpiDriverService |
createDefaultService()
Configures and returns a new
XpiDriverService using the default configuration. |
protected java.net.URL |
getUrl(int port) |
void |
start()
Starts this service if it is not already running.
|
void |
stop()
Stops this service is it is currently running.
|
checkExecutable, findExecutable, getOutputStream, getUrl, isRunning, sendOutputTo, waitUntilAvailable
protected java.net.URL getUrl(int port) throws java.io.IOException
getUrl
in class DriverService
java.io.IOException
public void start() throws java.io.IOException
DriverService
start
in class DriverService
java.io.IOException
- If an error occurs while spawning the child process.DriverService.stop()
public void stop()
DriverService
stop
in class DriverService
DriverService.start()
public static XpiDriverService createDefaultService()
XpiDriverService
using the default configuration. In
this configuration, the service will use the firefox executable identified by the
FirefoxDriver.SystemProperty.BROWSER_BINARY
system property on a free port.public static XpiDriverService.Builder builder()