Exemplo n.º 1
0
        private static RemoteWebDriver GetDriver()
        {
            BasicAuthSettings.BrowserType = BrowserType.Chrome;
            BasicAuthWebDriverWrapper wrapper = new BasicAuthWebDriverWrapper();

            return(wrapper.AuthenticatedDriver);
        }
Exemplo n.º 2
0
        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) { }
            }
        }