Im currently learning Selenium automation with python and im using chromedriver. Im having an issue running this simple script:
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
options = webdriver.ChromeOptions()
options.add_experimental_option("detach", True)
driver = webdriver.Chrome(options=options,service=Service(executable_path = 'C:/Users/{UserName}/Downloads/chromedriver-win64/chromedriver-win64'))
driver.get("https://google.com")
The error i receive is
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 118.0.5993.89 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
How do i resolve this? many thanks!
This may or may not apply to your environment, but brew upgrade chromedriver
did the trick for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With