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 
    Used to indicate that the provided driver has not been specified by the driverType() method.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Class<? extends org.openqa.selenium.WebDriver>
    Return the type of the webdriver being proxied.
    org.openqa.selenium.WebDriver
    Return a new instance of a webdriver
    boolean
    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 Class<? extends org.openqa.selenium.WebDriver> driverType()
      Return the type of the webdriver being proxied. Helps Serenity do internal stuff better.