无法在 60 秒内获得稳定的 Firefox 连接 (127.0.0.1:7055) [英] unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)

查看:29
本文介绍了无法在 60 秒内获得稳定的 Firefox 连接 (127.0.0.1:7055)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行 rspec 测试时出现以下错误

<块引用><块引用>

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

使用最新的 ruby​​ (1.9.2) 和 firefox (6.0)

使用 rspec-rails、capybara 和其他几个 gem,但它们似乎不是问题.这些测试在另一个环境 (linux) 中运行良好.

解决方案

[更新 - 这可以(对我来说)仍然是 2015 中此问题的解决方案 |mdurrant|]

我最近遇到了这个问题.

您应该升级到 capybara v1.0.1 以获得正确的 selenium webdriver.

可以肯定的是,我添加了:

gem 'selenium-webdriver', '2.25.0'

在我的 Gemfile 中.

重要说明:
selenium-webdriver gem 已更新,并针对 Firefox 的每个后续版本发布新版本.目前,需要 2.25.0 版本来支持 Firefox 15.

Getting the following error when running rspec tests

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

Using latest ruby (1.9.2) and firefox (6.0)

Using rspec-rails, capybara and several other gems, but they don't seem to be a problem. These tests run fine in another environment (linux).

解决方案

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

I came across this problem lately.

You should upgrade to capybara v1.0.1 to have a correct selenium webdriver.

To be sure I added:

gem 'selenium-webdriver', '2.25.0'

in my Gemfile.

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.

这篇关于无法在 60 秒内获得稳定的 Firefox 连接 (127.0.0.1:7055)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆