Mission IMpossible
Regular Member
- Jan 16, 2014
- 251
- 40
Below is the code I'm trying. But its still showing the dialog box asking for authorization when the browser starts. Where might I be going wrong?
Code:
FirefoxProfile profile = new FirefoxProfile();
Proxy firefox_proxy = new Proxy();
firefox_proxy.HttpProxy = proxy;
firefox_proxy.SslProxy = proxy;
profile.SetProxyPreferences(firefox_proxy);
Firefoxdriver driver = new FirefoxDriver(new FirefoxBinary(), profile, TimeSpan.FromMinutes(3));
driver.Navigate().GoToUrl("http://" + proxy_username + ":" + proxy_password + "@www.xyz.com/");