"unable to obtain stable firefox connection in 60 seconds" using latest selenium-webdriver

I'm trying to test a javascript-enabled Rails page using Capybara and shoulda. My setup is Ubuntu 11.10 (and FireFox 7) running on VirtualBox with Windows 7 as host. I have therubyracer in my gems.

My test code looks like this:

context "with javascript" do
  setup do
    Capybara.current_driver = :selenium
  end

  should "handle javascript" do      
    visit '/'
    click_link 'Hi'
    assert page.has_content? "Hello"
  end
end

(where the link with text "Hi" has a simple jQuery click() function to write "Hello" into another div; it works live) but the test reports:

unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)
Exception `Selenium::WebDriver::Error::WebDriverError' at /usr/local/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.9.1/lib/selenium/webdriver/firefox/launcher.rb:77:in `connect_until_stable'

I found this question, but I've now bundle updated both capybara and selenium-webdriver (the latter to 2.9.1) and I still get the same error. How can I fix it?

Answers


Upgrading selenium-webdriver worked for me:

bundle update selenium-webdriver

Need Your Help

Javascript / Chrome - How to copy an object from the webkit inspector as code

javascript jquery google-chrome object webkit

I am doing a console.log statement in my javascript in order to log a javascript object. I'm wondering if there's a way, once that's done - to copy that object as javascript code. What I'm trying t...

Why is it inadvisable to get statistical summary information for regression coefficients from glmnet model?

r statistics regression glm glmnet

I have a regression model with binary outcome. I fitted the model with glmnet and got the selected variables and their coefficients.