File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
java/client/test/org/openqa/selenium Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 61
61
< option value ="invisible " style ="display: none; " class ="invisible "> Invisible</ option >
62
62
</ select >
63
63
64
+ < select id ="transparent " style ="opacity: 0; ">
65
+ < option value ="one "> one</ option >
66
+ < option value ="two "> two</ option >
67
+ </ select >
68
+
64
69
</ body >
65
70
</ html >
Original file line number Diff line number Diff line change @@ -157,4 +157,11 @@ public void testCanSetInvisibleOption() {
157
157
assertTrue ("Expected to be selected" , element .isSelected ());
158
158
}
159
159
160
+ @ Test
161
+ public void testCanHandleTransparentSelect () {
162
+ driver .get (pages .selectPage );
163
+ WebElement element = driver .findElement (By .cssSelector ("#transparent option" ));
164
+ element .click ();
165
+ assertTrue ("Expected to be selected" , element .isSelected ());
166
+ }
160
167
}
You can’t perform that action at this time.
0 commit comments