Skip to content

Conversation

@VertexXX6
Copy link
Owner

@VertexXX6 VertexXX6 commented May 3, 2025

Title: Fix Select visibility issue with new Java test case (SeleniumHQ#15265)

Description

This PR addresses the inconsistency in the Select class behavior across bindings, as reported in Issue SeleniumHQ#15265. It adds a new Java test case (SelectHiddenOptionsTest.java) that checks if selectByVisibleText() correctly skips hidden options (defined by display: none, visibility: hidden, opacity: 0).

Changes

  • Added SelectHiddenOptionsTest.java with a custom isVisible method to validate CSS visibility properties.
  • Included a sample HTML file to simulate hidden options.

Testing

  • Ran tests locally using ChromeDriver and Maven (mvn test).
  • Verified that the test fails when selecting hidden options, aligning with the expected behavior.

Checklist

Notes

  • First contribution, open to feedback!
  • The test can be extended to cover selectByContainsVisibleText() if needed.

Related Issue

Closes SeleniumHQ#15265

selenium-ci and others added 4 commits May 2, 2025 22:09
* update pinned browser versions

* update devtools versions

* update selenium manager versions

* update maven dependency versions

* update authors file

* bump versions in preparation for release

* WIP - rough auto-update of changelog, please edit

* Moving Netty to 4.1.121.Final per @shs96c comment at SeleniumHQ@bce221b#diff-6136fc12446089c3db7360e923203dd114b6a1466252e71667c6791c20fe6bdc

* Updating changelogs

* Reverting undesired change in Rakefile

* Setting flag for Firefox setContext

* Format script

---------

Signed-off-by: Viet Nguyen Duc <[email protected]>
Co-authored-by: Selenium CI Bot <[email protected]>
Co-authored-by: Diego Molina <[email protected]>
Co-authored-by: Viet Nguyen Duc <[email protected]>
Co-authored-by: Diego Molina <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🚀 Feature]: Unifying Select Class Across All Bindings

4 participants