title: Capybara: Unable to find xpath "/html" (Capybara::ElementNotFound)
body: <p>I have read a lot of articles online and have yet to find a resolution to my problem. I am using Selenium webdriver:</p>
  
  <pre><code>    Capybara.default_driver = :selenium
      Capybara.javascript_driver = :selenium
      class FirefoxBrowser
        Capybara.register_driver :firefox do |app|
            client = Selenium::WebDriver::Remote::Http::Default.new
        client.timeout = 280
            Capybara::Selenium::Driver.new(app, :browser =&gt; :firefox, :http_client =&gt; client)
        end
    end
  </code></pre>
  
  <p>Here is the gemfile:</p>
  
  <pre><code>gem "rspec"
  gem "ZenTest"
  gem "cucumber"
  gem "selenium-webdriver"
  gem "capybara", "~&gt; 2.1.0"
  gem "capybara-webkit", "~&gt; 1.0.0"
  gem "simplecov", :require =&gt;false, :group =&gt; :test
  gem "capybara-screenshot"
  gem "autotest", "~&gt; 4.4.6"
  gem 'json', '~&gt; 1.7.7'
  gem "rack-test", require: "rack/test"
  gem "poltergeist"
  </code></pre>
  
  <p>I am running some ruby code using capybara similar to the following:</p>
  
  <p>visit '<a href="https://username:password@website.com/other_params" rel="nofollow">https://username:password@website.com/other_params</a>'</p>
  
  <p>this call will return an XML with information regarding whatever call i made. 
  from there, i check to see if the page has what im looking for:</p>
  
  <p>page.should have_content("content")</p>
  
  <p>Unable to find xpath "/html" (Capybara::ElementNotFound)</p>
  
  <p>This worked before we upgraded to capybara 2.1.0</p>
  
  <p>Now that we have upgraded i cannot seem to get this fixed. Any suggestions?</p>