简体   繁体   中英

watir with ruby on ubuntu not connecting

I get the following error:

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

I am trying to run Rspec with watir, the ruby gem, on an Ubuntu box.

But I keep getting this error on Firefox 42.

I'm not sure what I need to do to resolve this networking issue.

Read the following but I am on a way later version of Firefox:

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

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

gem update selenium-webdriver

Read the following but I am on a way later version of Firefox:

At the first link it says:

[Update - this can (was for me) still be a fix for this issue in 2015 |mdurrant|]

And:

Important note: The selenium-webdriver gem is updated, and a new version released, for every subsequent version of Firefox. Presently, version 2.25.0 is needed to support Firefox 15.

But your solutions was:

gem update selenium-webdriver

...which is not my interpretation of those posts. My interpretation is NOT that you always need the latest selenium for whatever version of Firefox you are using--rather they are trying to tell you that you need to match a selenium version to a Firefox version.

And in fact, there is an SO question titled:

Where can I find a definitive Selenium WebDriver to Firefox Compatibility Matrix ?

So, it looks to me like the latest version of selenium does not support Firefox 42. You need to install an earlier version of Firefox.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM