Commit b4475b0
committed
Add visibility check to selectByVisibleText in Select class
This change updates the selectByVisibleText method to prevent selecting <option> elements that are hidden via CSS properties: "display: none", "visibility: hidden", and "opacity: 0" or "0.0". It uses the existing hasCssPropertyAndVisible method to ensure that only visible options can be selected, making this method consistent with selectByContainsVisibleText, which already has this behavior. Fixes #152651 parent 9318b7a commit b4475b0
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
0 commit comments