python中selenium使用chrome自动化测的环境搭建
安装selenium
按住win+R键,输入cmd,使用pip install selenium命令安装
下载安装对应的chrome driver驱动
使用selenium需要下载与浏览器版本对应的驱动程序,下面以Google浏览器为例,其他浏览器也是一样的:
浏览器版本与chrome版本对应关系查:https://blog.****.net/huilan_same/article/details/51896672
chrome driver个版本下载地址:https://chromedriver.storage.googleapis.com/index.html
下载完成后将下载好的chrome driver拷贝到python的安装根目录下: