Search code examples
ruby-on-railsselenium-webdriverrspec-rails

Firefox address bar and page are blank when running RSpec test


I am getting this error

   Selenium::WebDriver::Error::WebDriverError:
   unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)

Here is the list of my tests gems

capybara (2.1.0)
rspec (2.14.1)
rspec-core (2.14.3)
rspec-expectations (2.14.0)
rspec-mocks (2.14.1)
rspec-rails (2.14.0)
selenium-webdriver (2.35.1)

My Firefox version is 29

When I downgraded my FF, it works fine.


Solution

  • I had the same issue and this works for me with Firefox version 28

    In your Gemfile, replace the current version with

    gem "selenium-webdriver", "~> 2.38.0"
    

    Then run,

    gem update selenium-webdriver
    
    bundle install