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

    Modifier and Type Method Description
    default java.lang.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 webdriver
    boolean takesScreenshots()
    Return true if the driver is configured to take screenshots.
  • Method Details

    • 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 java.lang.Class<? extends org.openqa.selenium.WebDriver> driverType()
      Return the type of the webdriver being proxied. Helps Serenity do internal stuff better.