Interface ConfiguredDriver

All Known Implementing Classes:
ConfiguredChromeDriver, ConfiguredEdgeDriver, ConfiguredFirefoxDriver, ConfiguredInternetExplorerDriver, ConfiguredSafariDriver, ConfiguredSauceLabsGridDriver

public interface ConfiguredDriver
  • Method Details

    • getLocalDriver

      org.openqa.selenium.WebDriver getLocalDriver() throws IOException
      Throws:
      IOException
    • getRemoteDriver

      org.openqa.selenium.WebDriver getRemoteDriver() throws IOException
      Throws:
      IOException
    • getOptions

      <T> T getOptions() throws IOException
      Throws:
      IOException
    • 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, File screenshotDirectory)
      Parameters:
      webDriver - active WebDriver instance
      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
    • createFileDownloadDirectory

      default String createFileDownloadDirectory(String path) throws IOException
      Parameters:
      path - runtime browser files download directory path
      Returns:
      Absolute file download path
      Throws:
      IOException - if the required directory cannot be created