Package dev.botcity.framework.web
Class WebDriverFactory
java.lang.Object
dev.botcity.framework.web.WebDriverFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BrowserConfig
getWebDriver
(Browser browser, boolean headless, org.openqa.selenium.MutableCapabilities options, org.openqa.selenium.MutableCapabilities capabilities, String driverPath, String downloadPath, PageLoadStrategy pageStrategy) Factory method to create a Browser config instance.
-
Constructor Details
-
WebDriverFactory
public WebDriverFactory()
-
-
Method Details
-
getWebDriver
public static BrowserConfig getWebDriver(Browser browser, boolean headless, org.openqa.selenium.MutableCapabilities options, org.openqa.selenium.MutableCapabilities capabilities, String driverPath, String downloadPath, PageLoadStrategy pageStrategy) Factory method to create a Browser config instance.- Parameters:
browser
- the target browser.headless
- true to run the browser in headless mode.options
- the browser options.capabilities
- the browser capabilities.driverPath
- the path to the driver.downloadPath
- the path to the download folder.pageStrategy
- the page load strategy.- Returns:
- the Browser config instance.
-