Class DriverServicePool<T extends org.openqa.selenium.remote.service.DriverService>
java.lang.Object
net.serenitybdd.core.webdriver.servicepools.DriverServicePool<T>
- Direct Known Subclasses:
ChromeServicePool,EdgeServicePool,GeckoServicePool,InternetExplorerServicePool,PhantomJSServicePool
public abstract class DriverServicePool<T extends org.openqa.selenium.remote.service.DriverService>
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected Tbooleanorg.openqa.selenium.WebDrivernewDriver(org.openqa.selenium.Capabilities capabilities) protected abstract org.openqa.selenium.WebDrivernewDriverInstance(org.openqa.selenium.Capabilities capabilities) Used as a fallback if the driver service cannot be used for some reason.protected abstract Tprotected abstract Stringvoidshutdown()voidstart()
-
Field Details
-
environmentVariables
-
-
Constructor Details
-
DriverServicePool
public DriverServicePool() -
DriverServicePool
-
-
Method Details
-
newDriverService
-
serviceName
-
newDriverInstance
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.- Parameters:
capabilities-
-
getDriverService
-
start
- Throws:
IOException
-
shutdown
public void shutdown() -
newDriver
public org.openqa.selenium.WebDriver newDriver(org.openqa.selenium.Capabilities capabilities) -
isRunning
public boolean isRunning() -
ensureServiceIsRunning
- Throws:
IOException
-