-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rust] Include SM flag --selenium-version to specify the Selenium version (#15754) #15755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
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:
|
|||||||||
|
@bonigarcia I made the corresponding change for Python in #16659 and tagged you as a reviewer. See my notes in the "Additional Considerations" section. I think it's kind of confusing how we handle versions in development. |
User description
🔗 Related Issues
This PR implements the Rust side of #15754.
💥 What does this PR do?
It is implements a new CLI flag in Selenium Manager called
--selenium-versionto specify the Selenium version to be reported to Plausible.🔧 Implementation Notes
The bindings should use this flag to specify its own version.
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add
--selenium-versionCLI flag to Selenium ManagerAllow bindings to specify Selenium version for analytics
Remove automatic version detection logic from Rust code
Simplify version handling by delegating to caller
Diagram Walkthrough
File Walkthrough
lib.rs
Remove SM_BETA_LABEL constantrust/src/lib.rs
SM_BETA_LABELconstant that was used for version stringmanipulation
main.rs
Add --selenium-version flag and simplify version handlingrust/src/main.rs
--selenium-versionCLI argument with empty default valueclap::crate_version!()macroSM_BETA_LABELimport and version string manipulation logiccomputing it