Skip to content

Commit

Permalink
[java] Fixing a test of finding elements by an empty id to match W3C …
Browse files Browse the repository at this point in the history
…requirements
  • Loading branch information
barancev committed Jun 19, 2019
1 parent 0856fe0 commit 6a1a3cc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions java/client/test/org/openqa/selenium/ElementFindingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,12 @@ public void testFindingASingleElementByEmptyIdShouldThrow() {
}

@Test
@NotYetImplemented(value = MARIONETTE, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1204504")
@NotYetImplemented(SAFARI)
@NotYetImplemented(EDGE)
public void testFindingMultipleElementsByEmptyIdShouldReturnEmptyList() {
@NotYetImplemented(FIREFOX)
@NotYetImplemented(HTMLUNIT)
public void testFindingMultipleElementsByEmptyIdShouldThrow() {
driver.get(pages.formPage);
List<WebElement> elements = driver.findElements(By.id(""));
assertThat(elements.size()).isEqualTo(0);
assertThatExceptionOfType(NoSuchElementException.class)
.isThrownBy(() -> driver.findElements(By.id("")));
}

@Test
Expand Down

0 comments on commit 6a1a3cc

Please sign in to comment.