-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Add test case for Select visibility issue #15265 #15694
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?
Add test case for Select visibility issue #15265 #15694
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Title: Add test case for Select visibility issue #15265
Description
This PR addresses the inconsistency in the
Select
class behavior across bindings, as reported in Issue #15265. It introduces a new Java test case (SelectHiddenOptionsTest.java
) to ensureselectByVisibleText()
skips hidden options (defined by CSS properties likedisplay: none
,visibility: hidden
,opacity: 0
).Changes
SelectHiddenOptionsTest.java
with a customisVisible
method to validate CSS visibility properties.test_select.html
) to simulate hidden options for testing.display
,visibility
, andopacity
properties to determine element visibility.Testing
selectByVisibleText()
fails to select hidden options, aligning with the expected behavior.mvn test
) to ensure compatibility with the project build.Checklist
Notes
selectByContainsVisibleText()
if needed.isVisible
method for edge cases (e.g., inherited CSS or partial opacity).Related Issue
Closes #15265
PR Type
Tests
Description
Add Java test for Select skipping hidden options
Include HTML fixture with visible and hidden options
Validate Select behavior for display, visibility, opacity
Changes walkthrough 📝
SelectHiddenOptionsTest.java
Add Java test for Select skipping hidden options
java/test/org/openqa/selenium/testing/SelectHiddenOptionsTest.java
test_select.html
Add HTML fixture for Select hidden options test
java/test/org/openqa/selenium/testing/test_select.html