private static IWebDriver CreateMobileRemoteWebDriver(ICapabilities capabilities) { var driver = new ScreenShotRemoteWebDriver(new Uri("http://hub.browserstack.com/wd/hub/"), capabilities); driver.VaftExt().TurnOnImplicitlyWait(); var detector = new LocalFileDetector(); driver.FileDetector = detector; return(driver); }
private IWebDriver CreateRemoteWebDriver(ICapabilities capabilities) { var driver = new ScreenShotRemoteWebDriver(new Uri(Config.Settings.RuntimeSettings.SeleniumGridUrl), capabilities); SetBrowserSize(driver); driver.VaftExt().TurnOnImplicitlyWait(); driver.VaftExt().SetPageLoadTimeout(); var detector = new LocalFileDetector(); driver.FileDetector = detector; Driver = driver; return(Driver); }
private static IWebDriver CreateRemoteWebDriver(ICapabilities capabilities) { var driver = new ScreenShotRemoteWebDriver(new Uri("http://hub.browserstack.com/wd/hub/"), capabilities); var resolution = Config.Settings.BrowserStackSettings.BsResolution; if (resolution == null) { driver.Manage().Window.Maximize(); } driver.VaftExt().TurnOnImplicitlyWait(); var detector = new LocalFileDetector(); driver.FileDetector = detector; return(driver); }