Class SharedWebDriver
java.lang.Object
io.fluentlenium.adapter.sharedwebdriver.SharedWebDriver
- All Implemented Interfaces:
org.openqa.selenium.WrapsDriver
A reference to a shared
WebDriver
used by a test.-
Constructor Summary
ConstructorDescriptionSharedWebDriver
(org.openqa.selenium.WebDriver driver, Class<?> testClass, String testName, ConfigurationProperties.DriverLifecycle driverLifecycle) Creates a new shared WebDriver. -
Method Summary
-
Constructor Details
-
SharedWebDriver
public SharedWebDriver(org.openqa.selenium.WebDriver driver, Class<?> testClass, String testName, ConfigurationProperties.DriverLifecycle driverLifecycle) Creates a new shared WebDriver.- Parameters:
driver
- selenium WebDrivertestClass
- test classtestName
- test namedriverLifecycle
- driver lifecycle
-
-
Method Details
-
getWrappedDriver
public org.openqa.selenium.WebDriver getWrappedDriver()- Specified by:
getWrappedDriver
in interfaceorg.openqa.selenium.WrapsDriver
-
getDriver
public org.openqa.selenium.WebDriver getDriver()Get the underlying driver.- Returns:
- selenium driver
-
getTestClass
Get the test class.- Returns:
- test class
-
getTestName
Get the test name.- Returns:
- test name
-
getDriverLifecycle
Get the driver lifecycle of this shared driver.- Returns:
- driver lifecycle
-
toString
-