public IWebDriver CreateSauceDriver(string browser, string browserVersion, string osPlatform, bool isDebuggingOn) { _desiredCapabilities.SetCapability(CapabilityType.BrowserName, browser); _desiredCapabilities.SetCapability(CapabilityType.Version, browserVersion); _desiredCapabilities.SetCapability(CapabilityType.Platform, osPlatform); _sauceCustomCapabilities = new SauceLabsCapabilities { IsDebuggingEnabled = isDebuggingOn }; return(SetSauceCapabilities(_desiredCapabilities)); }
public RemoteWebDriver CreateSauceDriver( string browser, string browserVersion, string osPlatform, SauceLabsCapabilities sauceConfiguration) { _desiredCapabilities.SetCapability("username", SauceUser.Name); _desiredCapabilities.SetCapability("accessKey", SauceUser.AccessKey); _desiredCapabilities.SetCapability(CapabilityType.BrowserName, browser); _desiredCapabilities.SetCapability(CapabilityType.Version, browserVersion); _desiredCapabilities.SetCapability(CapabilityType.Platform, osPlatform); //_desiredCapabilities.SetCapability(SauceLabsCapabilities.TunnelIdentifier, "453"); //an important flag to set for Edge and possibly Safari _desiredCapabilities.SetCapability("avoidProxy", true); _desiredCapabilities = SetDebuggingCapabilities(_desiredCapabilities); _desiredCapabilities.SetCapability("build", SauceLabsCapabilities.BuildName); //_desiredCapabilities.SetCapability("tunnelIdentifier", "NikolaysTunnel"); return(GetSauceRemoteDriver()); }
public RemoteWebDriver CreateSauceDriver( string browser, string browserVersion, string osPlatform, SauceLabsCapabilities sauceConfiguration) { var userName = SauceUser.Name; var accessKey = SauceUser.AccessKey; if (sauceConfiguration.IsHeadless) { SetPropertiesForHeadless(out userName, out accessKey); } SetUserAndKey(userName, accessKey); SetVMCapabilities(browser, browserVersion, osPlatform); //an important flag to set for Edge and possibly Safari _desiredCapabilities.SetCapability("avoidProxy", true); _desiredCapabilities = SetDebuggingCapabilities(_desiredCapabilities); _desiredCapabilities.SetCapability("build", SauceLabsCapabilities.BuildName); //_desiredCapabilities.SetCapability("tunnelIdentifier", "NikolaysTunnel"); return(GetSauceRemoteDriver()); }
public WebDriverFactory(SauceLabsCapabilities sauceConfig) { _sauceCustomCapabilities = sauceConfig; _desiredCapabilities = new DesiredCapabilities(); }
public WebDriverFactory() { _sauceCustomCapabilities = new SauceLabsCapabilities(); _desiredCapabilities = new DesiredCapabilities(); }
public RemoteWebDriver CreateSauceDriver(string browser, string browserVersion, string osPlatform, SauceLabsCapabilities sauceConfiguration) { _desiredCapabilities.SetCapability("username", SauceUser.Name); _desiredCapabilities.SetCapability("accessKey", SauceUser.AccessKey); _desiredCapabilities.SetCapability(CapabilityType.BrowserName, browser); _desiredCapabilities.SetCapability(CapabilityType.Version, browserVersion); _desiredCapabilities.SetCapability(CapabilityType.Platform, osPlatform); _desiredCapabilities = SetDebuggingCapabilities(_desiredCapabilities); _desiredCapabilities.SetCapability("build", SauceLabsCapabilities.BuildName); return(GetSauceRemoteDriver()); }