private static RemoteWebDriver GetDriver() { BasicAuthSettings.BrowserType = BrowserType.Chrome; BasicAuthWebDriverWrapper wrapper = new BasicAuthWebDriverWrapper(); return(wrapper.AuthenticatedDriver); }
public void FirefoxTest() { BasicAuthSettings.BrowserType = BrowserType.Firefox; BasicAuthSettings.Domain = "testdomain.com"; BasicAuthSettings.Username = "******"; BasicAuthSettings.Password = "******"; FirefoxDriver driver = null; basicAuth = new BasicAuthWebDriverWrapper(); try { driver = (FirefoxDriver)basicAuth.AuthenticatedDriver; driver.Navigate().GoToUrl("http://www.google.com/"); } finally { try { basicAuth.Quit(); } catch (Exception e) { } } }