You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Webdriver_Manager v4.0.0, there is a bug in the get_latest_release_version() method of the chrome.py file. The issue occurs when the determined_browser_version is less than 113. In this case, the code incorrectly uses the full version number (X.X.X.X format) to fetch the latest release version, resulting in an unexpected error. For example, it may raise a ValueError with a message like: "There is no such driver by url https://chromedriver.storage.googleapis.com/LATEST_RELEASE_94.0.4606.54".
To address this issue, the code can be updated as follows:
...
defget_latest_release_version(self):
determined_browser_version=self.get_browser_version_from_os()
log(f"Get LATEST {self._name} version for {self._browser_type}")
ifdetermined_browser_versionisnotNoneandversion.parse(determined_browser_version) >=version.parse("113"):
returndetermined_browser_version# Remove the build version (the last segment) from determined_browser_versiondetermined_browser_version=".".join(determined_browser_version.split(".")[:3])
latest_release_url= (
self._latest_release_urlif (determined_browser_versionisNone)
elsef"{self._latest_release_url}_{determined_browser_version}"
)
resp=self._http_client.get(url=latest_release_url)
returnresp.text.rstrip()
The text was updated successfully, but these errors were encountered:
In Webdriver_Manager v4.0.0, there is a bug in the get_latest_release_version() method of the chrome.py file. The issue occurs when the determined_browser_version is less than 113. In this case, the code incorrectly uses the full version number (X.X.X.X format) to fetch the latest release version, resulting in an unexpected error. For example, it may raise a ValueError with a message like: "There is no such driver by url https://chromedriver.storage.googleapis.com/LATEST_RELEASE_94.0.4606.54".
To address this issue, the code can be updated as follows:
The text was updated successfully, but these errors were encountered: