MarketSquare / webdrivermanager

Python module to facilitate downloading and deploying WebDriver binaries for Chrome, Firefox, Opera & Edge
https://pypi.org/project/webdrivermanager/
MIT License
100 stars 38 forks source link

Webdrivermanager can not detect chrome version #74

Open dimashyshkin opened 2 years ago

dimashyshkin commented 2 years ago

We are using webdrivermanager command-line options when running tests on docker and recently started getting an issue, where webdrivermanager can not detect the correct chrome version. So it downloads the latest, and sometimes tests fail because of version mismatch

Step 11/29 : RUN webdrivermanager  chrome --linkpath AUTO
09:35:34   ---> Running in 03faac027e3a
09:35:34  Error, unable to read current browser version
09:35:34  Failed to parse compatible version: Error, unable to read current browser version
09:35:34  Error, unable to read current browser version
09:35:34  Failed to parse compatible version: Error, unable to read current browser version
09:35:35  Downloading WebDriver for browser: "chrome"
09:35:35  
  0%|          | 0/5945 [00:00<?, ?kb/s]
5946kb [00:00, 60258.13kb/s]            
09:35:35  Error, unable to read current browser version
09:35:35  Failed to parse compatible version: Error, unable to read current browser version
09:35:35  Driver binary downloaded to: "/usr/local/share/WebDriverManager/chrome/93.0.4577.15/chromedriver_linux64/chromedriver"
09:35:35  Symlink created: /usr/local/bin/chromedriver

As a result, later all tests fail with this:

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 93
Current browser version is 92.0.4515.107 with binary path /usr/bin/google-chrome

I see that there were no changes to webdrivermanager recently, but maybe something changed on the Chrome side, so now webdrivermanager needs an update?

elveera0491 commented 2 years ago

Were you able to fix or work around this issue?

dimashyshkin commented 2 years ago

We just stopped using webdrivermanager and downloading chromedriver latest version manually (through the script)