title: Unable to connect to browser using ruby selenium webdriver
body: <p>I tried to run some basic automated tests using ruby selenium webdriver. The same code works perfectly on my home computer, but fails on my work computer which is behind a proxy (which doesn't require authentication).</p>
  
  <p>driver = Selenium::WebDriver.for :firefox, :profile => 'default'</p>
  
  <p>The error I get is:</p>
  
  <pre><code>C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/webdriver/remote/http/common.rb:66:in `create_response': unexpected response, code=
  403, content-type="text/html" (Selenium::WebDriver::Error::WebDriverError)
  &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;HTML&gt;&lt;HEAD&gt;&lt;META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"&gt;
  &lt;TITLE&gt;ERROR: The requested URL could not be retrieved&lt;/TITLE&gt;
  &lt;STYLE type="text/css"&gt;&lt;!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--&gt;&lt;/STYLE&gt;
  &lt;/HEAD&gt;&lt;BODY&gt;
  &lt;H1&gt;ERROR&lt;/H1&gt;
  &lt;H2&gt;The requested URL could not be retrieved&lt;/H2&gt;
  &lt;HR noshade size="1px"&gt;
  &lt;P&gt;
  While trying to retrieve the URL:
  &lt;A HREF="http://127.0.0.1:7055/hub/session"&gt;http://127.0.0.1:7055/hub/session&lt;/A&gt;
  &lt;P&gt;
  The following error was encountered:
  &lt;UL&gt;
  &lt;LI&gt;
  &lt;STRONG&gt;
  Access Denied.
  &lt;/STRONG&gt;
  &lt;P&gt;
  Access control configuration prevents your request from
  being allowed at this time.  Please contact your service provider if
  you feel this is incorrect.
  &lt;/UL&gt;
  </code></pre>
  
  <p>The browser opens with correct profile, but resulting driver variable is nil. I even tried to manually setup the proxy on the profile with no luck.</p>
  
  <p>Any ideas ?</p>