-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rust] Fix for non empty driver path in webdriver manager #16365
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
[rust] Fix for non empty driver path in webdriver manager #16365
Conversation
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:
|
This conflict was caused by PR #16368. At first glance, it seems to be about formatting changes in the main.rs file. I'll investigate and fix it later today. |
resolved in 2eeadab |
User description
🔗 Related Issues
fixed #16215
💥 What does this PR do?
please notice that bug discovery was assisted by github copilot
This pull request improves how the application handles and logs information when running in offline mode, especially regarding driver and browser paths. It also adds a new test to ensure the JSON output in offline mode includes the expected fields.
Offline mode handling and logging:
log_driver_and_browser_path
function inrust/src/main.rs
to accept anis_offline
argument and improved its logic to avoid logging driver unavailability errors when in offline mode. Now, it only logs an error if not offline and the driver path is missing.log_driver_and_browser_path
inmain
to pass the newis_offline
flag, ensuring consistent behavior based on connectivity status. [1] [2]Testing improvements:
offline_json_output_includes_browser_path_test
inrust/tests/offline_tests.rs
to verify that when running in offline mode with JSON output, the result includes abrowser_path
field and appropriate log messages.🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix
Description
Fix offline mode driver path handling and logging
Add offline parameter to
log_driver_and_browser_path
functionPrevent driver unavailability errors in offline mode
Add JSON output test for offline mode validation
Diagram Walkthrough
File Walkthrough
main.rs
Enhanced offline mode driver path handling
rust/src/main.rs
is_offline
parameter tolog_driver_and_browser_path
functionoffline_tests.rs
Add offline JSON output validation test
rust/tests/offline_tests.rs
offline_json_output_includes_browser_path_test