public class DriverFactory
Type Params | Return Type | Name and description |
---|---|---|
|
public Request |
authenticate(Route route, Response response) |
|
public Request |
authenticate(Route route, Response response) |
|
public static void |
changeWebDriver(WebDriver webDriver) Change the web driver that Katalon uses to execute your test to the given web driver instance. |
|
public static void |
closeWebDriver() Close the active web driver |
|
public static int |
getActionDelay() Get the action delay (in seconds) |
|
public static Alert |
getAlert() Get the current alert if there is one popped up |
|
public static String |
getBrowserVersion(WebDriver webDriver) |
|
public static String |
getChromeDriverPath() Get the absolute path of the current ChromeDriver |
|
public static int |
getCurrentWindowIndex() Get the index of the window the web driver is on |
|
public static int |
getDefaultPageLoadTimeout() Get the default page load timeout |
|
public static IDriverConfigurationProvider |
getDriverConfigurationProvider() |
|
public static DriverType |
getExecutedBrowser() Get the current executed browser type |
|
public static String |
getGeckoDriverPath() Get the absolute path of the current GeckoDriver |
|
public static String |
getRemoteWebDriverServerType() Get the type of the remove web driver is the current web driver type is remote |
|
public static String |
getRemoteWebDriverServerUrl() Get the url of the remove web driver is the current web driver type is remote |
|
public static WebDriver |
getWebDriver() Get the current active web driver |
|
public static String |
getWebDriverServerUrl(RemoteWebDriver remoteWebDriver) |
|
protected WebDriver |
initialValue() |
|
protected EdgeDriverService |
initialValue() |
|
protected EdgeDriverService |
initialValue() |
|
public static boolean |
isEnablePageLoadTimeout() Check if page load timeout is enabled |
|
public static boolean |
isIgnorePageLoadTimeoutException() Check if ignoring the page load timeout exception |
|
public static WebDriver |
openWebDriver() Open a new web driver based on the execution configuration. |
|
public static WebDriver |
openWebDriver(DriverType driver, Object options) |
|
public void |
run() |
|
public static void |
setDriverConfigurationProvider(IDriverConfigurationProvider provider) |
|
protected static WebDriver |
startExistingBrowser() |
|
public static void |
switchToAvailableWindow() Switch the active web driver to any available window |
|
public static boolean |
waitForAlert(int timeOut) Wait for an alert to pop up for a specific time |
Change the web driver that Katalon uses to execute your test to the given web driver instance. Note that Katalon will wrap the given instance into a subclass of EventFiringWebDriver
Close the active web driver
Get the action delay (in seconds)
Get the current alert if there is one popped up
Get the absolute path of the current ChromeDriver
Get the index of the window the web driver is on
Get the default page load timeout
Get the current executed browser type
Get the absolute path of the current GeckoDriver
Get the type of the remove web driver is the current web driver type is remote
Possible values: "Selenium", "Appium"
Get the url of the remove web driver is the current web driver type is remote
Get the current active web driver
Check if page load timeout is enabled
Check if ignoring the page load timeout exception
Open a new web driver based on the execution configuration.
Switch the active web driver to any available window
Wait for an alert to pop up for a specific time
timeOut
- the timeout to wait for the alert (in milliseconds)