[py] Improve Selenium Manager platform/architecture detection#17271
Merged
cgoldberg merged 2 commits intoSeleniumHQ:trunkfrom Mar 29, 2026
Merged
[py] Improve Selenium Manager platform/architecture detection#17271cgoldberg merged 2 commits intoSeleniumHQ:trunkfrom
cgoldberg merged 2 commits intoSeleniumHQ:trunkfrom
Conversation
Contributor
Review Summary by QodoFix Selenium Manager platform and architecture detection
WalkthroughsDescription• Fixes platform/architecture detection for Selenium Manager • Normalizes amd64/AMD64 architecture to x86_64 • Handles BSD platform names with version numbers • Restricts Windows to x86_64 architecture only • Adds comprehensive unit tests for platform detection File Changes1. py/selenium/webdriver/common/selenium_manager.py
|
Contributor
Code Review by Qodo
1.
|
Member
Author
|
The RBE failures are unrelated.. all python tests pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💥 What does this PR do?
Supersedes: #17263
This PR improves platform/architecture detection for Selenium Manager.
On versions of Python older than 3.14.
sys.platformon FreeBSD/OpenBSD includes the version number (i.e.freebsd15). This handles those cases by explicitly setting a normalized platform name. It also updates the warning about Selenium Manager binary on FreeBSD to hint at user what they need to do to get the Linux binary working on FreeBSD.Also, some platforms return
amd64orAMD64for architecture. This normalizes them toX86_64so they are handled the same.Previously, we were allowing "any" architecture on Windows, so the proper exception was not raised and Selenium Manager would fail to run instead.
This PR also adds unit tests for these.
🔄 Types of changes