Skip to content

Commit

Permalink
[Java] Update tagName test searching for "" to throw
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Jan 20, 2016
1 parent c431248 commit 23abcd6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions java/client/test/org/openqa/selenium/ElementFindingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,11 @@ public void testFindingASingleElementByEmptyTagNameShouldThrow() {
driver.findElement(By.tagName(""));
}

@Test
@Test(expected = NoSuchElementException.class)
@Ignore(value = MARIONETTE, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1204504")
public void testFindingMultipleElementsByEmptyTagNameShouldReturnEmptyList() {
public void testFindingMultipleElementsByEmptyTagNameShouldThrow() {
driver.get(pages.formPage);
List<WebElement> elements = driver.findElements(By.tagName(""));
assertThat(elements.size(), is(0));
driver.findElements(By.tagName(""));
}

@Test(expected = NoSuchElementException.class)
Expand Down

0 comments on commit 23abcd6

Please sign in to comment.