Package net.thucydides.core.webdriver
Interface DriverSource
-
public interface DriverSource
You can implement this class to provide your own driver instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DriverSource.UnknownDriver
Used to indicate that the provided driver has not been specified by the driverType() method.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Class<? extends org.openqa.selenium.WebDriver>
driverType()
Return the type of the webdriver being proxied.org.openqa.selenium.WebDriver
newDriver()
Return a new instance of a webdriverboolean
takesScreenshots()
Return true if the driver is configured to take screenshots.
-
-
-
Method Detail
-
newDriver
org.openqa.selenium.WebDriver newDriver()
Return a new instance of a webdriver
-
takesScreenshots
boolean takesScreenshots()
Return true if the driver is configured to take screenshots.
-
driverType
default Class<? extends org.openqa.selenium.WebDriver> driverType()
Return the type of the webdriver being proxied. Helps Serenity do internal stuff better.
-
-