-
Notifications
You must be signed in to change notification settings - Fork 79
Description
Good afternoon.
I am using Windows 10. It appears that when a new major version of chrome is released and automatically downloaded in the background, your program does not work until Chrome is fully updated.
Running chromedriver_autoinstaller.get_chrome_version() gives the new major version that is not actually fully installed and therefore downloads a newer chromedriver that is not actually compatible with Chrome. This problem has occurred for me previously but today with the release of Chrome 131 I was able to analyze it.
In the code I see that you are determining the version by the highest downloaded version in the /Chrome/Application directory. In my case there is both "130.0.6723.117" and "131.0.6778.69"
dirs = [f.name for f in os.scandir(path) if f.is_dir() and re.match("^[0-9.]+$", f.name)] if path else None
version = max(dirs) if dirs else None
I guess you'd need a more robust way to check which version of chrome is currently being used.
The workaround I have been using (aside from updating Chrome fully) is to catch the SessionNotCreatedException and use the chromedriver that was downloaded for the version prior (get_chrome_version() - 1).
Aside from this I have had no problems, thank you for this release.