Skip to content

Commit 1c5eee4

Browse files
committed
[java] don't abandon driver
1 parent 4bbb7c2 commit 1c5eee4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/src/org/openqa/selenium/remote/RemoteWebDriverBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ WebDriver getLocalDriver() {
344344
WebDriver localDriver = first.get().get();
345345

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

0 commit comments

Comments
 (0)