Class BrowserStackHelper
java.lang.Object
com.shaft.driver.internal.DriverFactory.BrowserStackHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DriverFactoryHelpergetBrowserStackDriver(org.openqa.selenium.MutableCapabilities browserStackOptions) Creates a new Selenium WebDriver instance using BrowserStack, use this to test Native Mobile apps over BrowserStack.
-
Constructor Details
-
BrowserStackHelper
public BrowserStackHelper()
-
-
Method Details
-
getBrowserStackDriver
public static DriverFactoryHelper getBrowserStackDriver(org.openqa.selenium.MutableCapabilities browserStackOptions) Creates a new Selenium WebDriver instance using BrowserStack, use this to test Native Mobile apps over BrowserStack. Before creating the driver, this method generates abrowserstack.ymlconfiguration file from SHAFT's properties. When the BrowserStack SDK Java agent is active, the SDK uses this file to intercept and manage the BrowserStack session.- Parameters:
browserStackOptions- custom browserstack options to be merged with the default in the browserStack.properties file- Returns:
- a new Selenium WebDriver instance using BrowserStack
-