[🐛 Bug]: Selenium uses a browser downloaded by Selenium Manager instead of the system one #12828
Closed
Description
What happened?
After upgrading to Selenium 4.13, my code started warning me that the chromedriver and chrome versions were not matching.
I made sure that my container had matching versions for the browser and webdriver I wanted to use
yum list --installed | grep "chrom"
chromedriver.x86_64 116.0.5845.96-1.el9 @epel
chromium.x86_64 116.0.5845.96-1.el9 @epel
chromium-common.x86_64 116.0.5845.96-1.el9 @epel
libchromaprint.x86_64 1.5.1-1.el9 @epel
After much head scratching, I found this page: https://www.selenium.dev/documentation/selenium_manager/#automated-browser-management
It looks like newer version of Selenium come with selenium manager by default, and there's no way to stop Selenium from using the browser(s) managed and cached by Selenium Manager
How can we reproduce the issue?
N/A
Relevant log output
The chromedriver version (116.0.5845.96) detected in PATH at /usr/bin/chromedriver might not be compatible with the detected chrome version (117.0.5938.92); currently, chromedriver 117.0.5938.92 is recommended for chrome 117.*, so it is advised to delete the driver in PATH and retry
Operating System
Fedora 38 / CentOS Stream 9
Selenium version
4.13 / 4.11.2
What are the browser(s) and version(s) where you see this issue?
Chromium 116 / Chrome 117
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 116
Are you using Selenium Grid?
No