Is this error due to the wrong version of chromdriver?

谁都会走 提交于 2020-08-11 00:50:18

问题


I' m trying to access websites through python, but after 3 lines of coding, I' m stuck. One of the error messages says :

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 77 "

Maybe it's because I have the wrong version of ChromeDriver? If so what should I do?

This is my code:

from selenium import webdriver
chrome_path = r"C:\Users\kyg\Downloads\chromedriver_win32\chromedriver"
browser = webdriver.Chrome(chrome_path)


回答1:


Step 1: Please check that your Chromedriver & Chrome Browser version is the same.

Step 2: Go to Windows/System32 and make sure there is no chromedriver file is there.

Step 3: If you find a chrome driver in System32 delete it or replace it with the latest one.




回答2:


I was actually keeping on browsing and found an answer for my question. If anyone else is having the same problem, go to session not created: This version of ChromeDriver only supports Chrome version 74 error with ChromeDriver Chrome using Selenium and the read the answer for this question!!



来源:https://stackoverflow.com/questions/57972379/is-this-error-due-to-the-wrong-version-of-chromdriver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!