selenium3 踩坑--move_to_element()报错

 问题:selenium3 使用move_to_element()报错,报错信息以下图所示:python

网上没有找到合适的解决办法,回退到稳定的selenium2能够解决。 pip install selenium==2.53.6浏览器

selenium和firefox版本对应关系:firefox

selenium2+firefox46及如下版本3d

selenium3+firefox47及以上版本blog

如何下载老版本firefox浏览器?ip

一、打开连接:https://www.mozilla.org/en-US/firefox/new/element

二、点击 need help? ,以下图所示:selenium

三、选择firefox产品产品

四、点击 安装和更新pip

五、点击 安装firefox之前的版本

六、点击 其余版本和语言目录

七、选择firefox46如下的版本就能够了,个人环境是selenium2.53.6 + firefox46 + python3 

 

相关文章
相关标签/搜索