Skip to content

Commit 23abcd6

Browse files
[Java] Update tagName test searching for "" to throw
1 parent c431248 commit 23abcd6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

java/client/test/org/openqa/selenium/ElementFindingTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,11 @@ public void testFindingASingleElementByEmptyTagNameShouldThrow() {
224224
driver.findElement(By.tagName(""));
225225
}
226226

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

235234
@Test(expected = NoSuchElementException.class)

0 commit comments

Comments
 (0)