Unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)

Panjiyar Rahul picture Panjiyar Rahul · Jan 13, 2013 · Viewed 43.9k times · Source

While testing scenario by cucumber i'm getting the following error when running rspec tests

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

Using ruby (1.9.2) selenium-webdriver (2.27.2) and firefox (19.0)

Using rspec-rails (2.12.1), capybara (2.0.2) and several other gems, Also i have added launchy gem but they don't seem to be a problem. And i am using Windows 7.

Answer

ballPointPenguin picture ballPointPenguin · Jan 27, 2013

I had the same problem (on Linux). Fixed with:

gem update selenium-webdriver

Now I am using ruby 1.9.3-p286, selenium-webdriver 2.29.0, firefox 18.0 As well as rspec-rails 2.9.0, capybara 1.1.2, and capybara-webkit 0.12.1

I added selenium-webdriver 2.29.0 to my Gemfile to be safe.