- 安装
chrome浏览器版本为 70.0.3538.102,配合的ChromeDriver版本为2.43【注意更新!官方更新速度很快】
下载地址:https://chromedriver.chromium.org/
解压后得到ChromeDriver.exe,在 Windows 下,将 chromedriver.exe 文件拖到 Python 的 Scripts 目录下即可。
- 使用
写代码测试:
报错:
百思不得其姐!这tm刚开始就这么坎坷撒—历经百转千回,终于知道是webdriver.chrome()应该写成webdriver.Chrome(),该大写的地方没有大写!
------2022-10-17更新-----
ChromeDriver版本更新至106(其实107也放出来了,但是别贪心!用107版本的driver没法控制106版本的chrome,别问我为什么知道的!)
https://chromedriver.storage.googleapis.com/106.0.5249.61/chromedriver_win32.zip
------2021-11-30更新-----
ChromeDriver版本更新至96.0.4664.45
https://chromedriver.storage.googleapis.com/96.0.4664.45/chromedriver_win32.zip
------2021-04-23更新-----
ChromeDriver版本更新至90.0.4430.24
https://chromedriver.storage.googleapis.com/90.0.4430.24/chromedriver_win32.zip
——2021-01-26更新——
Chrome 版本已更新至Version 88.0.4324.146 (Official Build) (64-bit)
ChromeDriver版本更新至88.0.4324.96
官方下载地址:https://chromedriver.storage.googleapis.com/index.html?path=88.0.4324.96/