-
Method Summary
-
Method Details
-
org.openqa.selenium.WebDriver getLocalDriver()
throws java.io.IOException
- Throws:
java.io.IOException
-
org.openqa.selenium.WebDriver getRemoteDriver()
throws java.io.IOException
- Throws:
java.io.IOException
-
<T> T getOptions()
throws java.io.IOException
- Throws:
java.io.IOException
-
default org.openqa.selenium.support.events.EventFiringWebDriver getDriver(java.io.File screenshotPath)
throws java.io.IOException
ß
- Parameters:
screenshotPath - path to store screenshots
- Returns:
- configured EventFiringWebDriver
- Throws:
java.io.IOException - if log directory doesn't exist
-
default org.openqa.selenium.support.events.EventFiringWebDriver configureEventFiringWebDriver(org.openqa.selenium.WebDriver webDriver,
java.io.File screenshotDirectory)
- Parameters:
webDriver - active WebDriver instance
screenshotDirectory - path to store screenshots
- Returns:
- configured options object for target browser driver
-
default void createLogDirectory()
throws java.io.IOException
- Throws:
java.io.IOException - if the log directory cannot be created
-
default java.lang.String createFileDownloadDirectory(java.lang.String path)
throws java.io.IOException
- Parameters:
path - runtime browser files download directory path
- Returns:
- Absolute file download path
- Throws:
java.io.IOException - if the required directory cannot be created