Class EdgeConfig
java.lang.Object
dev.botcity.framework.web.browsers.EdgeConfig
- All Implemented Interfaces:
BrowserConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.MutableCapabilities
Fetch the default capabilities from the browser.org.openqa.selenium.MutableCapabilities
defaultOptions
(boolean headless, String downloadFolderPath, String userDataDir) org.openqa.selenium.MutableCapabilities
defaultOptions
(boolean headless, String downloadFolderPath, String userDataDir, PageLoadStrategy pageLoadStrategy) Retrieve the default options from the browser curated by BotCity.org.openqa.selenium.remote.HttpCommandExecutor
executor
(org.openqa.selenium.WebDriver driver) Get browser executor.Get driver name from the browser.org.openqa.selenium.remote.SessionId
Get the session id.org.openqa.selenium.WebDriver
Get driver instance.waitForDownloads
(org.openqa.selenium.WebDriver driver) Wait for all downloads to finish.
-
Constructor Details
-
EdgeConfig
public EdgeConfig()
-
-
Method Details
-
getWebDriverDriver
public org.openqa.selenium.WebDriver getWebDriverDriver()Description copied from interface:BrowserConfig
Get driver instance.- Specified by:
getWebDriverDriver
in interfaceBrowserConfig
- Returns:
WebDriver
instance.
-
defaultOptions
public org.openqa.selenium.MutableCapabilities defaultOptions(boolean headless, String downloadFolderPath, String userDataDir, PageLoadStrategy pageLoadStrategy) Description copied from interface:BrowserConfig
Retrieve the default options from the browser curated by BotCity.- Specified by:
defaultOptions
in interfaceBrowserConfig
- Parameters:
headless
- Whether or not to use the headless mode.downloadFolderPath
- The default path in which to save files.userDataDir
- The directory to use as user profile.pageLoadStrategy
- The page load strategy.- Returns:
- The Browser options.
-
defaultOptions
-
defaultCapabilities
public org.openqa.selenium.MutableCapabilities defaultCapabilities()Description copied from interface:BrowserConfig
Fetch the default capabilities from the browser.- Specified by:
defaultCapabilities
in interfaceBrowserConfig
- Returns:
MutableCapabilities
with the default capabilities defined.
-
waitForDownloads
Description copied from interface:BrowserConfig
Wait for all downloads to finish. Important: This method overwrites the current page with the downloads page.- Specified by:
waitForDownloads
in interfaceBrowserConfig
- Parameters:
driver
- TheWebDriver
instance.- Returns:
- True if all downloads finished, false otherwise.
-
getDriverName
Description copied from interface:BrowserConfig
Get driver name from the browser.- Specified by:
getDriverName
in interfaceBrowserConfig
- Returns:
- The driver name.
-
executor
public org.openqa.selenium.remote.HttpCommandExecutor executor(org.openqa.selenium.WebDriver driver) Description copied from interface:BrowserConfig
Get browser executor.- Specified by:
executor
in interfaceBrowserConfig
- Parameters:
driver
- TheWebDriver
instance.- Returns:
HttpCommandExecutor
instance.
-
getSessionId
public org.openqa.selenium.remote.SessionId getSessionId()Description copied from interface:BrowserConfig
Get the session id.- Specified by:
getSessionId
in interfaceBrowserConfig
- Returns:
SessionId
instance.
-