Interface ConfiguredDriver
-
- All Known Implementing Classes:
ConfiguredChromeDriver
,ConfiguredEdgeDriver
,ConfiguredFirefoxDriver
,ConfiguredInternetExplorerDriver
,ConfiguredSafariDriver
public 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
-
getLocalDriver
org.openqa.selenium.WebDriver getLocalDriver() throws IOException
- Throws:
IOException
-
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 instancetimeout
- timeout for WebDriverWaitsscreenshotDirectory
- 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
-
-