views:

584

answers:

1

I'm attempting to use the selenium-webdriver [ruby bindings][1] to access an internal web-site that requires a proxy to be configured, and HTTP Basic Auth.

I currently have:

  require "selenium-webdriver"
  driver = Selenium::WebDriver.for :firefox
  driver.navigate.to "http://my-internal-site.com"

But this fails due to both the proxy and http auth issues. If I add my username and password to the URL (i.e. http://username:[email protected]) I can do basic authentication on another site that doesn't require the proxy, but this doesn't seem like an ideal solution.

Any suggestions?

A: 

Unfortunately doing http://username:[email protected] has been the standard way of doing but with more and more browsers blocking this approach. Patrick Lightbody of BrowserMob discussed in the company blog on how they get it to work.

AutomatedTester
Thank you! That's a bit of a blocker, but at least there's some kind of work-around.
Chris Lowis