我收到以下错误:selenium.common.exceptions.SessionNotCreatedException:消息:未创建会话:此版本的ChromeDriver仅支持Chrome114版 当前浏览器版本为116.0.5845.97,二进制路径为C:\Program Files\Google\Chrome\Application\chrome.exe
有谁可以帮我?我在其他帖子中看到了一些建议,但没有一个在这里奏效.我知道SelSelum v4.6的更新
我的代码是:
from selenium import webdriver
import time
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
class ChromeAuto:
def __init__(self):
self.options = webdriver.ChromeOptions()
self.options.add_experimental_option('excludeSwitches', ['enable-logging'])
self.service = Service()
self.chrome = webdriver.Chrome(service=self.service, options=self.options)
self.chrome.implicitly_wait(20)