firefox - 60 秒内无法获得稳定的 Firefox 连接 (127.0.0.1 :7055) ubuntu

标签 firefox selenium

我在我的火狐浏览器上使用了 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/

相关文章:

ssl - Firefox SEC_ERROR_INADEQUATE_CERT_TYPE 没有增强的 key 用法

google-chrome - 语法错误 : missing = in const declaration Firefox 50

css - Firefox 上带有线性渐变的掩码图像

JavaScript:获取以编程方式模拟 HTML 元素点击的点击事件坐标

html - Flex basis 100% in column flexbox : full height in Firefox, not in Chrome

javascript - 关于 Linux 上 Javascript 中的文件处理

java - 如何在 selenium 3.141.59 中打开新选项卡

google-chrome - 使用 chromedp 启动具有特定用户配置文件的浏览器

python selenium webdriver 问题(selenium.common.exceptions.WebDriverException : Message: "Can' t load the profile. 配置文件目录:)

java - 在java中使用selenium web驱动程序从div获取文本值