Skip to content

Commit

Permalink
[java] Fixing an old test in WebDriverBackedSeleniumLargeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Aug 24, 2021
1 parent ea41b75 commit 9b2da60
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ public void testCallingStopThenSleepDoesNotCauseAnExceptionToBeThrown() {
selenium.stop();

try {
// Now schedule a command that caues "interrupt" to be thrown internally.
// Now schedule a command that causes "interrupt" to be thrown internally.
selenium.isElementPresent("name=q");
fail("This test should have failed");
} catch (NullPointerException expected) {
} catch (NullPointerException | IllegalStateException expected) {
// This is the exception thrown by selenium 1. We should throw the same
// one
// IllegalStateException is what the timer throws when it has been stopped
}

try {
Expand Down

0 comments on commit 9b2da60

Please sign in to comment.