Skip to content

Commit 196dbbe

Browse files
committed
Unignoring a passed test in IE and Chrome
1 parent 49ced26 commit 196dbbe

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

+3-9
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,11 @@ public void testShouldSubmitAFormWhenAnyElementWithinThatFormIsSubmitted() {
103103
waitFor(pageTitleToBe(driver, "We Arrive Here"));
104104
}
105105

106-
@Test
107-
@Ignore(value = {ANDROID, CHROME, IE, IPHONE, OPERA, PHANTOMJS, SAFARI, OPERA_MOBILE, MARIONETTE})
106+
@Test(expected = NoSuchElementException.class)
107+
@Ignore(value = {ANDROID, IPHONE, OPERA, PHANTOMJS, SAFARI, OPERA_MOBILE, MARIONETTE})
108108
public void testShouldNotBeAbleToSubmitAFormThatDoesNotExist() {
109109
driver.get(pages.formPage);
110-
111-
try {
112-
driver.findElement(By.name("SearchableText")).submit();
113-
fail("Should not have succeeded");
114-
} catch (RuntimeException e) {
115-
assertThat(e, is(instanceOf(NoSuchElementException.class)));
116-
}
110+
driver.findElement(By.name("SearchableText")).submit();
117111
}
118112

119113
@Test

0 commit comments

Comments
 (0)