一、chrome浏览器
- 如果电脑没有下载chrome浏览器,需要先下载
- 查看chrome浏览器版本:
二、chromeDriver驱动
- 驱动下载地址:http://chromedriver.storage.googleapis.com/index.html
- 找到chorme浏览器对应的版本,例如:110.0.5481,选择最新的小版本即可
- 找到对应操作系统的压缩包下载
- 放到自定义的安装目录里
- MAC举例:cd chromeDriver /usr/local/bin/chromeDriver
- Win举例:拷贝chromedriver.exe,到自定义目录
三、验证
- MAC举例: