titusfortner / webdrivers

Keep your Selenium WebDrivers updated automatically
MIT License
592 stars 113 forks source link

Incorrect architecture detection on M1 Mac arm64 on Chrome 118.0.5993.117 #259

Closed dtoms closed 9 months ago

dtoms commented 9 months ago

Summary

Short summary of the bug or feature request.

On m1 max mac/arm64 I am getting the x86 chromedriver and hence it launches slow compatibility chrome.

You can see in the logs it decides I'm not compatible when comparing version strings. Possibly a bug there.

2023-10-30 13:24:37 DEBUG Webdrivers Checking current version
2023-10-30 13:24:37 DEBUG Webdrivers /Users/daniel.toms/.webdrivers/chromedriver is not already downloaded
2023-10-30 13:24:37 DEBUG Webdrivers making System call: ["//Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
2023-10-30 13:24:38 DEBUG Webdrivers System call returned: Google Chrome 118.0.5993.117 

2023-10-30 13:24:38 DEBUG Webdrivers Browser version: Google Chrome 118.0.5993.117
2023-10-30 13:24:38 DEBUG Webdrivers Checking current version
2023-10-30 13:24:38 DEBUG Webdrivers /Users/daniel.toms/.webdrivers/chromedriver is not already downloaded
2023-10-30 13:24:38 DEBUG Webdrivers making System call: ["//Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
2023-10-30 13:24:38 DEBUG Webdrivers System call returned: Google Chrome 118.0.5993.117 

2023-10-30 13:24:38 DEBUG Webdrivers Browser version: Google Chrome 118.0.5993.117
2023-10-30 13:24:38 DEBUG Webdrivers making System call: ["//Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
2023-10-30 13:24:38 DEBUG Webdrivers System call returned: Google Chrome 118.0.5993.117 

2023-10-30 13:24:38 DEBUG Webdrivers Browser version: Google Chrome 118.0.5993.117
2023-10-30 13:24:38 DEBUG Webdrivers Making network call to https://googlechromelabs.github.io/chrome-for-testing/latest-patch-versions-per-build.json
2023-10-30 13:24:38 DEBUG Webdrivers Get response: #<Net::HTTPOK 200 OK readbody=true>
2023-10-30 13:24:38 DEBUG Webdrivers Latest version available: 118.0.5993.70
2023-10-30 13:24:38 DEBUG Webdrivers Deleting /Users/daniel.toms/.webdrivers/chromedriver.version
2023-10-30 13:24:38 DEBUG Webdrivers making System call: ["//Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
2023-10-30 13:24:38 DEBUG Webdrivers System call returned: Google Chrome 118.0.5993.117 

2023-10-30 13:24:38 DEBUG Webdrivers Browser version: Google Chrome 118.0.5993.117
2023-10-30 13:24:38 DEBUG Webdrivers Checking current version
2023-10-30 13:24:38 DEBUG Webdrivers /Users/daniel.toms/.webdrivers/chromedriver is not already downloaded
2023-10-30 13:24:38 DEBUG Webdrivers making System call: ["//Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
2023-10-30 13:24:38 DEBUG Webdrivers System call returned: Google Chrome 118.0.5993.117 

2023-10-30 13:24:38 DEBUG Webdrivers Browser version: Google Chrome 118.0.5993.117
2023-10-30 13:24:38 DEBUG Webdrivers making System call: ["//Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
2023-10-30 13:24:38 DEBUG Webdrivers System call returned: Google Chrome 118.0.5993.117 

2023-10-30 13:24:38 DEBUG Webdrivers Browser version: Google Chrome 118.0.5993.117
2023-10-30 13:24:38 DEBUG Webdrivers Making network call to https://googlechromelabs.github.io/chrome-for-testing/latest-patch-versions-per-build.json
2023-10-30 13:24:38 DEBUG Webdrivers Get response: #<Net::HTTPOK 200 OK readbody=true>
2023-10-30 13:24:38 DEBUG Webdrivers Latest version available: 118.0.5993.70
2023-10-30 13:24:38 DEBUG Webdrivers Making network call to https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json
2023-10-30 13:24:38 DEBUG Webdrivers Get response: #<Net::HTTPOK 200 OK readbody=true>
2023-10-30 13:24:38 DEBUG Webdrivers Apple architecture: Intel (mac64)
2023-10-30 13:24:38 DEBUG Webdrivers chromedriver version is NOT Apple M1 compatible. Required >= 87.0.4280.88
2023-10-30 13:24:38 DEBUG Webdrivers Apple architecture: Intel (mac64)
2023-10-30 13:24:38 DEBUG Webdrivers chromedriver version is NOT Apple M1 compatible. Required >= 87.0.4280.88
2023-10-30 13:24:38 DEBUG Webdrivers Apple architecture: Intel (mac64)
2023-10-30 13:24:38 DEBUG Webdrivers chromedriver version is NOT Apple M1 compatible. Required >= 87.0.4280.88
2023-10-30 13:24:38 DEBUG Webdrivers chromedriver URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.70/mac-x64/chromedriver-mac-x64.zip
2023-10-30 13:24:38 DEBUG Webdrivers Making network call to https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.70/mac-x64/chromedriver-mac-x64.zip
2023-10-30 13:24:39 DEBUG Webdrivers Get response: #<Net::HTTPOK 200 OK readbody=true>
2023-10-30 13:24:39 DEBUG Webdrivers Successfully downloaded /var/folders/7x/xnyl5k7d0xd6q9y6pnb74fsw0000gp/T/20231030-40959-in71mvchromedriver-mac-x64.zip
2023-10-30 13:24:39 DEBUG Webdrivers Decompressing /var/folders/7x/xnyl5k7d0xd6q9y6pnb74fsw0000gp/T/20231030-40959-in71mvchromedriver-mac-x64.zip
2023-10-30 13:24:39 DEBUG Webdrivers Completed download and processing of /Users/daniel.toms/.webdrivers/chromedriver

Debug Info

Please provide the following information for bug reports:

dtoms commented 9 months ago

This was my/our bad. Somehow I had the x86 version of ruby installed which is part of the above logic check. Uninstalling it, reinstalling it to get the correct arm version, removing the existing chromedriver, then re-running solved the issue.