Class SharedWebDriver

java.lang.Object
io.fluentlenium.adapter.sharedwebdriver.SharedWebDriver
All Implemented Interfaces:
org.openqa.selenium.WrapsDriver

public class SharedWebDriver extends Object implements org.openqa.selenium.WrapsDriver
A reference to a shared WebDriver used by a test.
  • 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 WebDriver
      testClass - test class
      testName - test name
      driverLifecycle - driver lifecycle
  • Method Details

    • getWrappedDriver

      public org.openqa.selenium.WebDriver getWrappedDriver()
      Specified by:
      getWrappedDriver in interface org.openqa.selenium.WrapsDriver
    • getDriver

      public org.openqa.selenium.WebDriver getDriver()
      Get the underlying driver.
      Returns:
      selenium driver
    • getTestClass

      public Class<?> getTestClass()
      Get the test class.
      Returns:
      test class
    • getTestName

      public String getTestName()
      Get the test name.
      Returns:
      test name
    • getDriverLifecycle

      public ConfigurationProperties.DriverLifecycle getDriverLifecycle()
      Get the driver lifecycle of this shared driver.
      Returns:
      driver lifecycle
    • toString

      public String toString()
      Overrides:
      toString in class Object