Interface ConfiguredDriver

    • Method Summary

      Modifier and Type Method Description
      default org.openqa.selenium.support.events.EventFiringWebDriver configureEventFiringWebDriver​(org.openqa.selenium.WebDriver webDriver, long timeout, File screenshotDirectory)  
      default void createLogDirectory()  
      default org.openqa.selenium.support.events.EventFiringWebDriver getDriver​(File screenshotPath)
      ß
      org.openqa.selenium.WebDriver getLocalDriver()  
      org.openqa.selenium.WebDriver getRemoteDriver()  
    • Method Detail

      • getRemoteDriver

        org.openqa.selenium.WebDriver getRemoteDriver()
      • getDriver

        default org.openqa.selenium.support.events.EventFiringWebDriver getDriver​(File screenshotPath)
                                                                           throws IOException
        ß
        Parameters:
        screenshotPath - path to store screenshots
        Returns:
        configured EventFiringWebDriver
        Throws:
        IOException - if log directory doesn't exist
      • configureEventFiringWebDriver

        default org.openqa.selenium.support.events.EventFiringWebDriver configureEventFiringWebDriver​(org.openqa.selenium.WebDriver webDriver,
                                                                                                      long timeout,
                                                                                                      File screenshotDirectory)
        Parameters:
        webDriver - active WebDriver instance
        timeout - timeout for WebDriverWaits
        screenshotDirectory - path to store screenshots
        Returns:
        configured options object for target browser driver
      • createLogDirectory

        default void createLogDirectory()
                                 throws IOException
        Throws:
        IOException - if the log directory cannot be created