一、安裝Python
下載地址:??https://www.python.org/downloads/??
二、安裝selenium
1.由于使用的Mac,在無法卸載python2的情況下,進入命令行輸入pip3 install selenium安裝selenium
2.在命令行輸入python3,進入到python命令行界面,輸入from selenium import webdriver,如果沒有報錯代表已經(jīng)安裝成功。
三、安裝webdrvier
chrome驅(qū)動下載地址:??http://chromedriver.storage.googleapis.com/index.html??
注:根據(jù)文件夾名稱,對應版本號下載
firefox驅(qū)動下載地址:??https://github.com/mozilla/geckodriver/releases??
將下載好的驅(qū)動解壓后,放置目錄/usr/local/bin/
四、安裝Visual Studio Code
VScode下載地址:??https://code.visualstudio.com/??文章來源:http://www.zghlxwxcb.cn/news/detail-429284.html
可下載插件python Snippets,協(xié)助編碼文章來源地址http://www.zghlxwxcb.cn/news/detail-429284.html
到了這里,關于一、搭建selenium web自動化集成環(huán)境的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!