[py] Create module for importing latest devtools#17133
[py] Create module for importing latest devtools#17133cgoldberg wants to merge 8 commits intoSeleniumHQ:trunkfrom
Conversation
PR TypeEnhancement Description
|
| Relevant files | |||||||
|---|---|---|---|---|---|---|---|
| Build |
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||
|
We need to be aware that using latest may lead to breaking changes as CDP is not stable |
yea.. using "latest" could lead to code breakage if there are changes in CDP. However, if you pin your imports to a specific version of devtools and upgrade selenium, you could also have issues with having an incompatible CDP version. Users would have to be aware of the tradeoffs either way... I think adding this just gives some flexibility. Specifying a version in imports still works as it did previously. |
💥 What does this PR do?
This PR creates a
selenium.webdriver.common.devtools.latestmodule that points to the latest devtools module.It is generated by bazel during build and simply consists of a an
__init.__.pythat does a wildcard import of the latest devtools.i.e.:
This allows users to import the latest devtools modules with:
instead of always specifying the version number in imports:
🔄 Types of changes