Skip to content

Commit

Permalink
Merge pull request #123 from falbrech-hsdg/fix_selenium_timeout_exc
Browse files Browse the repository at this point in the history
Fix Selenium Timeout Exception handling
  • Loading branch information
falbrech-hsdg committed Jun 26, 2015
2 parents 739a4f2 + 0985777 commit b4e3b85
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1136,13 +1136,14 @@ private void handleSeleniumException(Throwable e) {
throw new AutomationException("Element not found", wde);
}

// check for a time out
if (wde instanceof TimeoutException) {
throw new PerformanceFailure(wde.getMessage(), wde);
}

throw wde;
}

// check for a time out
if (e instanceof TimeoutException) {
throw new PerformanceFailure(e.getMessage(), e);
}

// otherwise, throw a technical exception
throw new TechnicalException("Unknown exception when clicking element", e);
Expand Down

0 comments on commit b4e3b85

Please sign in to comment.