-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JS] kill chromium service on quit (#10796)
* [JS] kill chromium service on quit * create new default service for every driver instance in chrome * modify getDefaultService to return new service in edge and chrome driver Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
19 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -661,11 +661,13 @@ class Driver extends webdriver.WebDriver { | |
*/ | ||
static createSession(caps, opt_serviceExecutor) { | ||
let executor | ||
let onQuit | ||
if (opt_serviceExecutor instanceof http.Executor) { | ||
executor = opt_serviceExecutor | ||
configureExecutor(executor, this.VENDOR_COMMAND_PREFIX) | ||
} else { | ||
let service = opt_serviceExecutor || this.getDefaultService() | ||
onQuit = () => service.kill() | ||
executor = createExecutor(service.start(), this.VENDOR_COMMAND_PREFIX) | ||
} | ||
|
||
|
@@ -679,7 +681,7 @@ class Driver extends webdriver.WebDriver { | |
} | ||
} | ||
|
||
return /** @type {!Driver} */ (super.createSession(executor, caps)) | ||
return /** @type {!Driver} */ (super.createSession(executor, caps, onQuit)) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
titusfortner
Member
|
||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
how is
onQuit
used?Is it intended that this PR is inside 4.3.1 as it introduce breaking changes
selenium-4.3.0...selenium-4.3.1-javascript