Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

Commit

Permalink
step one, add the failing test, for firefox not being able to select …
Browse files Browse the repository at this point in the history
…the out of view multi select option
  • Loading branch information
lukeis committed Jan 12, 2016
1 parent 5a8a3de commit 1b1bbf4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
13 changes: 11 additions & 2 deletions common/src/web/selectPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<option value="one">one</option>
<option value="two" />two</option>
</select>

<select id="selectWithMultipleEqualsMultiple" multiple="multiple">
<option selected="selected" label="emmental">Emmental</option>
<option label="roquefort">Roquefort</option>
Expand All @@ -26,7 +26,7 @@
<option value="one">one</option>
<option value="two">two</option>
</select>

<select id="selectWithRandomMultipleValue" multiple="somethingElse">
<option value="one">one</option>
<option value="two">two</option>
Expand All @@ -38,5 +38,14 @@
<option id="two-in-group" value="two">two</option>
</optgroup>
</select>

<select id="selectWithMultipleLongList" multiple>
<option>one</option>
<option>two</option>
<option>three</option>
<option>four</option>
<option>five</option>
<option>six</option>
</select>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,12 @@ public void testCanGetValueFromOptionViaAttributeWhenAttributeIsEmptyString() {
WebElement element = driver.findElement(By.id("optionEmptyValueSet"));
assertThat(element.getAttribute("value"), is(""));
}

@Test
public void testCanSelectFromMultipleSelectWhereValueIsBelowVisibleRange() {
driver.get(pages.selectPage);
WebElement option = driver.findElements(By.cssSelector("#selectWithMultipleLongList option")).get(4);
option.click();
assertThat(option.isSelected(), is(true));
}
}

0 comments on commit 1b1bbf4

Please sign in to comment.