-
Hello. I am using the new Would there be a way, using SeleniumBase, to detect that the current version is not available yet and revert back to the latest driver version? The exception thrown right now (line 553 of sb_install.py) is very general so there isn't a good way to ensure it is only because the specific version isn't found. A possible solution is to also compare the browser version to the latest version and revert to the latest version if the browser version is bigger than the driver version. I'm not familiar with the internals of SB though, so I'm not sure if this is optimal or not. I am currently using SB 4.20.9 on Python 3.11.5. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hello. Instead of using That option specifically gives you the latest milestone version of chromedriver that matches your milestone version of Chrome. These drivers are built in such a way that the latest driver for a milestone will work with any browser of the same milestone. (Eg. And newer drivers of the same milestone are built to be fully backwards compatible with any browser of the same milestone version. Therefore, use |
Beta Was this translation helpful? Give feedback.
Hello. Instead of using
driver_version="browser"
, usedriver_version="mlatest"
, as described here: #2036 (comment).That option specifically gives you the latest milestone version of chromedriver that matches your milestone version of Chrome. These drivers are built in such a way that the latest driver for a milestone will work with any browser of the same milestone. (Eg.
chromedriver
118 for Chrome 118.) It's an upgrade over matching the exact version of the driver to the browser, because if there's a bug with a driver version (but not the matching exact browser version), then they could toss the driver version and replace it with a newer one without necessarily replacing the browser ver…