Skip to content

Commit

Permalink
override stopClient without params in FirefoxDriver
Browse files Browse the repository at this point in the history
This enables us to ensure we call quit on the Legacy FirefoxDriver
And thus cleans up the temporary file system.

Fixes #2914
Fixes #2908
  • Loading branch information
lukeis committed Oct 13, 2016
1 parent aed9a77 commit 3d30e5e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ protected Lock obtainLock(FirefoxProfile profile) {
}

@Override
protected void stopClient(Capabilities desiredCapabilities, Capabilities requiredCapabilities) {
if (isLegacy(desiredCapabilities)) {
protected void stopClient() {
if (this.getCommandExecutor() instanceof LazyCommandExecutor) {
((LazyCommandExecutor) this.getCommandExecutor()).quit();
}
}
Expand Down

0 comments on commit 3d30e5e

Please sign in to comment.