public abstract class DriverServicePool<T extends org.openqa.selenium.remote.service.DriverService> extends Object
Modifier and Type | Field and Description |
---|---|
protected EnvironmentVariables |
environmentVariables |
Constructor and Description |
---|
DriverServicePool() |
DriverServicePool(EnvironmentVariables environmentVariables) |
Modifier and Type | Method and Description |
---|---|
void |
ensureServiceIsRunning() |
protected T |
getDriverService() |
boolean |
isRunning() |
org.openqa.selenium.WebDriver |
newDriver(org.openqa.selenium.Capabilities capabilities) |
protected abstract org.openqa.selenium.WebDriver |
newDriverInstance(org.openqa.selenium.Capabilities capabilities)
Used as a fallback if the driver service cannot be used for some reason.
|
protected abstract T |
newDriverService() |
protected abstract String |
serviceName() |
void |
shutdown() |
void |
start() |
protected final EnvironmentVariables environmentVariables
public DriverServicePool()
public DriverServicePool(EnvironmentVariables environmentVariables)
protected abstract T newDriverService()
protected abstract String serviceName()
protected abstract org.openqa.selenium.WebDriver newDriverInstance(org.openqa.selenium.Capabilities capabilities)
capabilities
- protected T getDriverService()
public void start() throws IOException
IOException
public void shutdown()
public org.openqa.selenium.WebDriver newDriver(org.openqa.selenium.Capabilities capabilities)
public boolean isRunning()
public void ensureServiceIsRunning() throws IOException
IOException
Copyright © 2021. All rights reserved.