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 

 

相關文章
相關標籤/搜索