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

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

问题描述

以前工作正常,现在每当我运行脚本时,它只是打开Firefox,然后什么都不做。虽然它在使用chromedriver运行时工作。



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

解决方案

最新的Firefox版本将不再适用于传统的Firefox驱动程序。要使用Firefox 48+以上的Watir,您需要下载 geckodriver 按照Ruby的说明操作。



<由于Geckodriver还没有功能完整,你很可能会继续使用旧的Firefox驱动程序,这意味着要么使用
Firefox ESR 或者降级到Firefox 47.0.1。


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.

解决方案

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.

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天全站免登陆