我无法使我的Chromedriver正常工作,并且下载了几个不同的版本,但输出错误没有变化。我的代码是:
from selenium import webdriver
driver= webdriver.Chrome('C:/Users/Admin/Desktop/chromedriver.exe')
driver.get("https://www.google.com")
并且内核中的输出是
Traceback (most recent call last):
File "C:\Users\Admin\Desktop\Market Bot.py", line 11, in <module>
driver= webdriver.Chrome('C:/Users/Admin/Desktop/chromedriver.exe')
File "C:\Users\Admin\anaconda3\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
desired_capabilities=desired_capabilities)
File "C:\Users\Admin\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "C:\Users\Admin\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\Admin\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Admin\anaconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 84
我如何使其工作?
答案 0 :(得分:0)