Repository navigation
[rb] improve selenium manager testing - #17597
Conversation
Review Summary by QodoAdd Selenium Manager DriverFinder integration tests and fix platform path handling
WalkthroughsDescription• Adds DriverFinder integration tests for Selenium Manager - Resolves executable driver and browser paths - Downloads driver and browser into Selenium cache • Fixes latent bug in Platform.unix_path for nil separator handling • Refactors BUILD configuration to use OS-specific pinned browser targets • Removes redundant test tags and improves test organization Diagramflowchart LR
A["DriverFinder Tests"] --> B["Driver Path Resolution"]
A --> C["Browser Path Resolution"]
A --> D["Cache Downloads"]
E["Platform.unix_path Fix"] --> F["Nil Separator Handling"]
G["BUILD Configuration"] --> H["OS-Specific Targets"]
G --> I["Remove Redundant Tags"]
File Changes1. rb/lib/selenium/webdriver/common/platform.rb
|
Code Review by Qodo
1. Guard block arity wrong
|
|
Thank you, @titusfortner for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent After reviewing the change, unless it is a critical fix or a feature that is needed for Selenium We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
|
Code review by qodo was updated up to the latest commit 8ebdeb8 |
|
Code review by qodo was updated up to the latest commit 201f569 |
|
Code review by qodo was updated up to the latest commit 267ab0c |
|
Code review by qodo was updated up to the latest commit 47213cd |
|
Code review by qodo was updated up to the latest commit 9ba26df |
|
Code review by qodo was updated up to the latest commit 258053a |
|
Code review by qodo was updated up to the latest commit 0be3ea2 |
|
Code review by qodo was updated up to the latest commit 72a6e81 |
72a6e81 to
6c2dd73
Compare
|
Code review by qodo was updated up to the latest commit 6c2dd73 |
6c2dd73 to
ba1aedc
Compare
|
Code review by qodo was updated up to the latest commit ba1aedc |
|
Code review by qodo was updated up to the latest commit 4601bd3 |
|
Code review by qodo was updated up to the latest commit 4b0c3b4 |
🔗 Related Issues
Supersedes #16767. Ruby implementation of #16741.
💥 What does this PR do?
service spec files do not need special tags other than not to run on Grid. The changes in [rb] fix using environment variables to set drivers #17571 now make sure that DriverFinder will use those values instead of calling out to Selenium Manager.
Create a new driver finder spec that tests all the browsers and marks them os-sensitive.
Deletes pre-installed browsers in addition to drivers from bazel runs to ensure that the tests (specifically Edge which has special behavior) is properly exercised.
🔧 Implementation Notes
🤖 AI assistance
💡 Additional Considerations
These tests should be run without pin-browsers being set. Already true on Windows, I'll adjust for mac and linux in another PR
🔄 Types of changes