[rb] fix select being able to select options hidden by css rules#17037
[rb] fix select being able to select options hidden by css rules#17037FFederi wants to merge 3 commits into
Conversation
PR TypeBug fix Description
|
| Relevant files | |||
|---|---|---|---|
| Bug fix |
| ||
| Tests |
|
|
Thank you, @FFederi 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. |
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:
|
|||||||||
7e9ae08 to
5422054
Compare
|
@aguspe |
@FFederi thank you for the awesome work! I just have one small comment in Java selectByVisibleText also calls assertSelectIsEnabled() and assertSelectIsVisible() on the parent select before iterating options, want to add the same here? |
Code Review by Qodo
Context used 1. Missing Set require
|
0836333 to
b0a4c10
Compare
|
Persistent review updated to latest commit b0a4c10 |
🔗 Related Issues
Related to issue: [🚀 Feature]: Unifying Select Class Across All Bindings
💥 What does this PR do?
Modifies select behaviour to make it the same as python and Java bindings.
In particular, makes it so selecting an option hidden by CSS rules raises an exception.
🔧 Implementation Notes
I couldn't find (or understand) a general way to check visibility of an element, so I added a simple check on CSS values like it's been done with Java and python.
🔄 Types of changes