小编典典

无法在60秒(127.0.0.1:7055)中获得稳定的Firefox连接

selenium

我的Firefox使用了selenium,但是今天早晨,当我运行测试时,我遇到了同样的错误。我将selenium-
webdriver更新为当前版本(2.38),但仍然存在该错误。

Selenium::WebDriver::Error::WebDriverError:
unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)
# /home/user/.rvm/gems/ruby-2.0.0-p195@taxand/gems/selenium-webdriver-2.38.0/lib/selenium/webdriver/firefox/launcher.rb:79:in `connect_until_stable'

我在我拥有2.35版本的其他项目中进行了检查,该项目昨天也可以使用-那里今天也无法使用; o

所以我想那不是selenium的问题,但是我的FF会被破坏吗?但是我也尝试使用自定义firefox_path来运行它到较旧的firefox版本,问题是相同的:

有任何想法吗?


阅读 323

收藏
2020-06-26

共1个答案

小编典典

更新Firefox 26后,在Mac OS X Mavericks中发现了相同的问题。

我通过更新selenium-webdriver gem解决了问题

在您的gemfile中,将当前的selenium-webdriver gem行替换为

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

在您的控制台中,gem update selenium-webdriver

然后bundle install

之后尝试运行测试。

2020-06-26