Python3+PyCharm+selenium3 環境搭建

安裝Python3
請去python官網下載安裝包,我用的是Python3.6
安裝PyCharm,這個也是去官網自己下吧,偶的是2018.2.3(CommunityEdition)
接下來安裝selenium
PyCharm中Tremianl
Python3+PyCharm+selenium3 環境搭建
安裝完成後,
在python Console中輸入
Python3+PyCharm+selenium3 環境搭建
沒有報錯,說明安裝成功
接下來安裝瀏覽器驅動
 Chrome驅動:http://npm.taobao.org/mirrors/chromedriver
Firefox驅動: https://github.com/mozilla/geckodriver/releases
火狐的貌似要×××
將兩個瀏覽器的驅動下載下來,chromedriver.exe,geckodriver.exe分別放到Chrome和Firefox兩個瀏覽器的安裝文件夾
Python3+PyCharm+selenium3 環境搭建
Firefox驅動
Python3+PyCharm+selenium3 環境搭建
Chrome驅動
再在系統環境變量中添加兩個瀏覽器的可執行路徑
Python3+PyCharm+selenium3 環境搭建
結果Firefox的一直報錯
驗證Chrome
Python3+PyCharm+selenium3 環境搭建
彈出Chrome瀏覽器
Python3+PyCharm+selenium3 環境搭建
在地址欄出現 data:, 不知何故,求高人解答
在下方出現 Chrome 正收到自動測試軟件的控制
Python3+PyCharm+selenium3 環境搭建
出現
Python3+PyCharm+selenium3 環境搭建
驗證成功
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章