Ubuntu无法获得稳定的Firefox连接

Ubuntu无法获得稳定的Firefox连接

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

问题描述

我曾经用firefox工作硒,但今天早上当我跑我的测试时,我得到了同样的错误。我更新了当前版本(2.38)的硒webdriver,但我仍然有这个错误。

pre $ 在60秒内无法获得稳定的firefox连接(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



所以我想这不是硒问题,但我的FF可以被打破?但是我也试图用自定义的firefox_path来运行它到老版本的firefox,问题是一样的:< / p>

有什么想法?



在Mac OS X Mavericks中发现了同样的问题。 >通过更新selenium-webdriver gem来解决这个问题



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

gemselenium-webdriver,〜> 2.38.0



控制台, gem update selenium-webdriver



然后 bundle install



尝试运行后的测试。


I had working selenium with my firefox, but today morning when i ran my test i got the same error. I updated selenium-webdriver for current version ( 2.38 ), but i still have that error.

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'

also

i checked it in my other project where i have 2.35 version and it also worked yesterday - and there it also doesn't work today ;o

So i suppose that is no selenium issue, but my FF can be broken? But i also tried to run it with custom firefox_path to older firefox versions, and the issue is the same :<

Any ideas?

解决方案

I've found the same problem in Mac OS X Mavericks after I updated the Firefox 26.

I solved the problem by updating the selenium-webdriver gem

In your gemfile, replace your current selenium-webdriver gem line with

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

In your console, gem update selenium-webdriver.

Then bundle install.

Try the running the test after.

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

08-11 09:43