Skip to content

Commit

Permalink
[java] don't abandon driver
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jun 8, 2022
1 parent 4bbb7c2 commit 1c5eee4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ WebDriver getLocalDriver() {
WebDriver localDriver = first.get().get();

if (localDriver != null && this.useCustomConfig) {
localDriver.quit();
throw new IllegalArgumentException("ClientConfig instances do not work for Local Drivers");
}

Expand Down

0 comments on commit 1c5eee4

Please sign in to comment.