G
G
german_mel2021-09-27 09:13:03
Python
german_mel, 2021-09-27 09:13:03

What should I do to make Selenium see the updated chromedriver?

Selenium gives errors on tests and swears at an outdated chrome driver:

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 91E Current browser version is 93.0.4577.82

Downloaded a new driver, replaced the old one - did not help . Rebooted - did not help. I deleted the old path from Path (the driver was in the root folder of the python), created the C: \ bin folder, put the new driver there and updated the path in Path - the same error. I'm green in these matters, tell me where to dig? I can't imagine why it doesn't detect a new driver.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
arsu4ka, 2021-10-26
@arsu4ka

Check that the version of the web driver matches the version of the installed chrome, then drop it into the project folder (preferably, but not necessary).

driver = webdriver.Chrome(executable_path='absolute_path_to_chromedriver')

Check all the permissions to run Chromedriver so that everything works for sure

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question