I am trying to run Selenium tests on several remote automation services (Sauce Labs, Browserstack, etc.) and run into problems hitting their APIs through my corporate firewall.
Just notice, the application I'm trying to check is not behind this firewall, it is publicly available.
DesiredCapabilities caps = DesiredCapabilities.internetExplorer(); caps.setCapability("platform", "Windows 7"); caps.setCapability("version", "9.0"); caps.setCapability("idleTimeout", "300"); caps.setCapability("name", "Invitation Tests"); driver = new RemoteWebDriver(new URL("https://user: key@saucelabs.com ), caps);
The problem is that Selenium plumbing interprets the user: the key in the url is like the credentials of a proxy server, so it never leaves our network. Are there any specific tricks to tweaking this? It seems that Apache HttpClient is used under the hood.
I think we are using the NTLM proxy, it seems to use basic auth. This could be the same problem: https://code.google.com/p/selenium/issues/detail?id=7286
source share