我在我的火狐浏览器上使用了 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 的自定义 firefox_path 来运行它,问题是相同的:<
有什么想法吗?
最佳答案
更新 Firefox 26 后,我在 Mac OS X Mavericks 中发现了同样的问题。
我通过更新 selenium-webdriver gem 解决了这个问题
在您的 gemfile 中,将当前的 selenium-webdriver gem 行替换为
gem“selenium-webdriver”,“~> 2.38.0”
在您的控制台中,gem 更新 selenium-webdriver
。
然后捆绑安装
。
尝试在之后运行测试。
关于firefox - 60 秒内无法获得稳定的 Firefox 连接 (127.0.0.1 :7055) ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20567215/