Watir webdriver:打开浏览器后不做任何事情(firefox) [英] Watir webdriver: Doesn't do anything after opening browser (firefox)

查看:28
本文介绍了Watir webdriver:打开浏览器后不做任何事情(firefox)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前它运行良好,现在每当我运行脚本时,它只会打开 Firefox,然后什么都不做.不过,它在使用 chromedriver 运行时可以工作.

It was working fine before, now whenever I run the script it just opens Firefox then does nothing. It works when running with chromedriver though.

尝试更新宝石等,但没有成功.

Tried updating gems etc, but no success.

推荐答案

最新的 Firefox 版本将不再适用于旧版 Firefox 驱动程序.要在 Firefox 48+ 中使用 Watir,您需要下载 geckodriver按照 Ruby 的说明进行操作.

The latest Firefox version will no longer work with the legacy Firefox Driver. To use Watir with Firefox 48+ you need to download geckodriver and follow the instructions for Ruby.

由于 Geckodriver 尚未完成功能,您很可能希望继续使用旧版 Firefox 驱动程序,这意味着使用 Firefox ESR 或降级到 Firefox 47.0.1.

Since Geckodriver is not yet feature complete, you most likely will want to continue using the legacy Firefox Driver, which means either using Firefox ESR or downgrading to Firefox 47.0.1.

这篇关于Watir webdriver:打开浏览器后不做任何事情(firefox)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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