File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
java/client/test/org/openqa/selenium Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 9
9
< option value ="one "> one</ option >
10
10
< option value ="two " /> two</ option >
11
11
</ select >
12
-
12
+
13
13
< select id ="selectWithMultipleEqualsMultiple " multiple ="multiple ">
14
14
< option selected ="selected " label ="emmental "> Emmental</ option >
15
15
< option label ="roquefort "> Roquefort</ option >
26
26
< option value ="one "> one</ option >
27
27
< option value ="two "> two</ option >
28
28
</ select >
29
-
29
+
30
30
< select id ="selectWithRandomMultipleValue " multiple ="somethingElse ">
31
31
< option value ="one "> one</ option >
32
32
< option value ="two "> two</ option >
38
38
< option id ="two-in-group " value ="two "> two</ option >
39
39
</ optgroup >
40
40
</ select >
41
+
42
+ < select id ="selectWithMultipleLongList " multiple >
43
+ < option > one</ option >
44
+ < option > two</ option >
45
+ < option > three</ option >
46
+ < option > four</ option >
47
+ < option > five</ option >
48
+ < option > six</ option >
49
+ </ select >
41
50
</ body >
42
51
</ html >
Original file line number Diff line number Diff line change @@ -126,4 +126,12 @@ public void testCanGetValueFromOptionViaAttributeWhenAttributeIsEmptyString() {
126
126
WebElement element = driver .findElement (By .id ("optionEmptyValueSet" ));
127
127
assertThat (element .getAttribute ("value" ), is ("" ));
128
128
}
129
+
130
+ @ Test
131
+ public void testCanSelectFromMultipleSelectWhereValueIsBelowVisibleRange () {
132
+ driver .get (pages .selectPage );
133
+ WebElement option = driver .findElements (By .cssSelector ("#selectWithMultipleLongList option" )).get (4 );
134
+ option .click ();
135
+ assertThat (option .isSelected (), is (true ));
136
+ }
129
137
}
You can’t perform that action at this time.
0 commit comments