python+selenium自動化測試——瀏覽器驅動

來源:互聯網
上載者:User

標籤:ted   for   col   rom   設定   tps   hub   int   disable   

selenium控制瀏覽器需要下載對應版本的驅動,並把下載好的驅動解壓然後拷貝到python的安裝目錄。

 

1、chrome

驅動對應版本及;https://npm.taobao.org/mirrors/chromedriver/

2、firefox

驅動 ;https://github.com/mozilla/geckodriver/releases/

3、IE

驅動;http://www.cr173.com/soft/195732.html

IE的啟用保護模式

開啟IE——》設定——》Internet選項——》安全——》啟用保護模式前的對勾,4個需全部勾選或全部不勾選,否則會報以下錯誤;

"Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones."

 

python+selenium自動化測試——瀏覽器驅動

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.