Skip to content

Commit

Permalink
fix failed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmi committed Dec 24, 2017
1 parent 7e6054c commit 72622b2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ protected void after() {
* @throws IOException exception.
* @throws IllegalArgumentException exception.
*/
@Test(expected = SessionNotCreatedException.class)
@Test(expected = IllegalStateException.class)
public void firefoxNotFoundIn_webdriver_firefox_bin() throws IOException, IllegalArgumentException {
new FirefoxDriverFactory().newInstance(new DriverOptions());
try {
new FirefoxDriverFactory().newInstance(new DriverOptions());
} catch (SessionNotCreatedException e) {
throw new IllegalStateException(e);
}
}
}

0 comments on commit 72622b2

Please sign in to comment.