Selenium-webdriver 0.1.4 在 Firefox 5 中损坏

发布于 2024-11-18 06:37:38 字数 776 浏览 1 评论 0原文

我遇到了一个大问题,需要很快解决,但我不确定如何解决。

现在我有一个应用程序在使用 v0.1.4 的 selenium-webdriver gem 时卡住了。我正在使用 Ubuntu 10.10 和 Firefox Stable PPA。几天前的晚上,Firefox 强制推出了新的 v5.0,现在 Firefox 中的 Webdriver 扩展已损坏。这基本上意味着当我运行 Cucumber 测试时,Firefox 将启动,但它无法执行任何操作,因为 Webdriver 被禁用。

现在,我已经观察了好几天了,看起来 Selenium 的人们已经更新了他们的 0.2.x 版本以与 Firefox 5 兼容。但我对升级似乎是一个重大的版本增加犹豫不决。我尝试从 FF 网站下载 Firefox-4.0,但据我所知,他们只是将其作为 FF5 潜入(每次我直接启动 FF4 时,它仍然会启动 FF5)。我还尝试使用 Synaptic 中的强制版本功能,但 FF4 也不可用。

我要么需要找到一个 hack 来修复 webdriver 0.1.4,要么降级到 FF4。有人有什么建议吗?

======================================

编辑:上面的一些内容是在许多依赖问题,很多都是我自己的误解造成的。我无意冒犯,但我很后悔自己没有看到他正盯着我的脸。我已经缓和了我的咆哮。 Selenium 和 Firefox 都是可靠的产品,我很高兴让它们再次工作。

只需升级到 >= 0.2.2 即可解决该问题。我认为版本从 0.1.x 跳转到 0.2.x 表明了潜在的兼容性问题,而我当时还没有准备好处理这些问题。

I'm having kind of a big problem that I need to solve pretty quickly, but I'm just not sure how.

Right now I've got an app that's stuck using the selenium-webdriver gem at v0.1.4. I'm using Ubuntu 10.10 and the Firefox Stable PPA. A few nights ago, Firefox forced their new v5.0, and now the Webdriver extension in Firefox is broken. That basically means that when I run Cucumber tests, Firefox will launch, but it won't be able to do anything, since the Webdriver is disabled.

Now, I've been watching for days, and it looks like the folks over at Selenium have updated their 0.2.x release to be compatible with Firefox 5. But I'm hesitant to upgrade what appears to be a significant version increase. I've tried downloading Firefox-4.0 from the FF website, but from what I can tell they just sneak it in as FF5 (every time I launch FF4 directly, it still launches FF5). I've also tried to use the Force Version feature in Synaptic, but FF4 isn't available there either.

I either need to find a hack to fix webdriver 0.1.4 or downgrade to FF4. Does anyone have any advice?

====================================

Edit: Some of the above was written in frustration amid a number of dependency issues, and a lot of it was from my own misunderstanding. I meant no offense, and am kicking myself for not seeing was staring me right in the face. I've toned down my rant. Selenium and Firefox are solid products, and I'm just glad I got them working again.

Solved the problem by just upgrading to >= 0.2.2. I thought the version jump from 0.1.x to 0.2.x indicated potential compatibility issues that I wasn't prepared to deal with at the time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

-小熊_ 2024-11-25 06:37:38

此处有一个名为 jarra 的用户发布的帖子似乎有将 FF4 安装回 mac 然后强制 selenium 使用 FF4 的说明。

There's a post here by a user named jarra that appears to have directions for installing FF4 back to the mac and then forcing selenium to use FF4.

酒浓于脸红 2024-11-25 06:37:38

您的意思是该扩展由于不兼容而被禁用?

然后,您可以通过将条目extensions.checkcompatibility.5.0 添加到about:config 来强制兼容,其值为false。重新启动火狐浏览器。如果该插件仍然处于禁用状态,请安装 MR Tech 的 Toolkit 插件,重新启动 Firefox,右键单击该插件,“启用不兼容的插件”(或其他内容)。重新启动后,Webdriver 应该可以正常工作。

Do you mean that the extension was disabled due to incompatibility?

Then you can force compatibility by adding the entry extensions.checkcompatibility.5.0 to about:config, with value false. Restart Firefox. If the addon remains disabled, install MR Tech's Toolkit addon, restart Firefox, right-click on the addon, "enable incompatible addon" (or something else). After restarting, Webdriver should work fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文