一、首先要下载谷歌驱动
1.(打开谷歌浏览器 - 设置 - 关于谷歌,查看谷歌浏览器版本,否则不对应无法调用,会提示:selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version xxxx)
2.下载对应版本谷歌webdrive,下面两个链接二选一
Chrome for Testing availability
也可以在下发链接下载其他浏览器驱动(看你使用什么浏览器了):
https://www.selenium.dev/zh-cn/document