When you set the proxy server parameter in the code below, if your proxy server requires authentication, FireFox will display an authentication dialog box and basically you wonβt be able to fill it out automatically. So, is there a way to set USERNAME and PASSWORD ?
FirefoxProfile profile = new FirefoxProfile(); String PROXY = "192.168.1.100:8080"; OpenQA.Selenium.Proxy proxy = new OpenQA.Selenium.Proxy(); proxy.HttpProxy=PROXY; proxy.FtpProxy=PROXY; proxy.SslProxy=PROXY; profile.SetProxyPreferences(proxy); FirefoxDriver driver = new FirefoxDriver(profile);
If you try to format the proxy server line something like this: http://username: pass@192.168.1.1 :8080 You will get an error that the line is not valid. So I think there must be a way to achieve this.
Any help would be appreciated.
source share