selenium3 踩坑--move_to_element()报错
问题:selenium3 使用move_to_element()报错,报错信息如下图所示:

网上没有找到合适的解决办法,回退到稳定的selenium2可以解决。 pip install selenium==2.53.6
selenium和firefox版本对应关系:
selenium2+firefox46及以下版本
selenium3+firefox47及以上版本
如何下载老版本firefox浏览器?
1、打开链接:https://www.mozilla.org/en-US/firefox/new/
2、点击 need help? ,如下图所示:

3、选择firefox产品

4、点击 安装和更新

5、点击 安装firefox以前的版本

6、点击 其他版本和语言目录

7、选择firefox46以下的版本就可以了,我的环境是selenium2.53.6 + firefox46 + python3




浙公网安备 33010602011771号