Skip to content

Commit

Permalink
#1361: prepared the place for fixing the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelendik committed Jun 5, 2021
1 parent 002d199 commit 1820abc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ public void onException(Throwable thr, WebDriver driver) {
// do nothing
return;
}

// #1361 don't do driver.quit call if driver wasn't started or was terminated
if (thr.getMessage().contains("was terminated due to")) {
// initiate DriverPool cleanup removing existing driver asap without quit
//TODO: implement cleanup or marking driver as terminated in the pool
}

// handle use-case when application crashed on iOS but tests continue to execute something because doesn't raise valid exception
// Example:
Expand Down

0 comments on commit 1820abc

Please sign in to comment.