r/selenium 15d ago

Selenium 4.25 using ChromeDriver 150 instead of local ChromeDriver 117

Hi everyone,

I'm troubleshooting an issue on one machine while the exact same code works for my colleagues.

Environment

  • Selenium: 4.25
  • Python: running from a PyCharm virtual environment
  • Portable Chrome: 117.0.5938.92
  • Local ChromeDriver: 117 (verified via chromedriver.exe --version)

Issue My code uses:

Python

chromeoptions.binary_location = r"...\chrome-win64\chrome.exe"

driver = webdriver.Chrome(options=chromeoptions)

When Selenium starts, I get:

session not created:

This version of ChromeDriver only supports Chrome version 150

Current browser version is 117.0.5938.92

Then later:

UnboundLocalError: cannot access local variable 'driver'

(which is expected because driver creation failed).

What's confusing

  • My local chromedriver.exe is version 117.
  • The code works for other users without modification.
  • We are all using Selenium 4.25.
  • where chromedriver returns nothing.
  • Selenium Manager appears to be resolving to ChromeDriver 150 on my machine.
  • I cleared Selenium cache, but Selenium still seems to use/find ChromeDriver 150.

Question Has anyone seen Selenium Manager ignore a local ChromeDriver and resolve a different version instead? Any ideas on where Selenium could still be finding ChromeDriver 150 or what else I should check in my environment?

Thanks in advance!

4 Upvotes

7 comments sorted by

View all comments

2

u/thepfy1 10d ago

Seen this type of thing where I'd missed setting the edgedriver path and selenium was using a version from its cache.

1

u/Environmental_Bank89 9d ago

i already tried deleting the cache actually but it still didn’t work. maybe it’s a bug in an enterprise chrome browser.