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 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.