selenium: [π Bug]: Selenium Manager returning incorrect driver location
What happened?
Selenium Manager returning incorrect driver location when executed as system user.
Reported location: C:\WINDOWS\system32\config\systemprofile.cache\selenium\chromedriver\win64\116.0.5845.96\chromedriver.exe
Correct location: C:\WINDOWS\SysWOW64\config\systemprofile.cache\selenium\chromedriver\win64\116.0.5845.96\chromedriver.exe
How can we reproduce the issue?
import os
from selenium import webdriver
from selenium.webdriver.common.selenium_manager import SeleniumManager
chrome_options = webdriver.ChromeOptions()
chrome_driver = SeleniumManager().driver_location(chrome_options)
corrected_chrome_driver = chrome_driver.replace('system32','SysWOW64')
chrome_driver_exists = os.path.isfile(chrome_driver)
corrected_chrome_driver_exists = os.path.isfile(corrected_chrome_driver)
print(f'Reported_Location:{chrome_driver}, Exists:{chrome_driver_exists}')
print(f'Corrected_Location:{corrected_chrome_driver}, Exists:{corrected_chrome_driver_exists}')
Relevant log output
Reported_Location:C:\WINDOWS\system32\config\systemprofile\.cache\selenium\chromedriver\win64\116.0.5845.96\chromedriver.exe, Exists:False
Corrected_Location:C:\WINDOWS\SysWOW64\config\systemprofile\.cache\selenium\chromedriver\win64\116.0.5845.96\chromedriver.exe, Exists:True
Operating System
Windows 2019
Selenium version
4.11.2
What are the browser(s) and version(s) where you see this issue?
Chrome 116.0.5845.96
What are the browser driver(s) and version(s) where you see this issue?
chromedriver 116.0.5845.96
Are you using Selenium Grid?
No
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 27 (13 by maintainers)
Yes, many things changed. I donβt know what the problem was, but the new version (to be released soon) will solve your issue.