Class BrowserStackHelper

java.lang.Object
com.shaft.driver.internal.DriverFactory.BrowserStackHelper

public class BrowserStackHelper extends Object
  • 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 a browserstack.yml configuration 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