Skip to content

Commit ab765ac

Browse files
authored
Merge branch 'trunk' into python-formatting
2 parents 4941898 + 39c38e4 commit ab765ac

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,4 @@ javascript/node/selenium-webdriver/.vscode/settings.json
140140

141141
dotnet-bin
142142
.metadata/
143+
.npmrc

javascript/node/selenium-webdriver/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ load("//javascript/private:browsers.bzl", "BROWSERS")
1111

1212
npm_link_all_packages(name = "node_modules")
1313

14-
VERSION = "4.25.0-nightly202408281539"
14+
VERSION = "4.25.0-nightly202409161624"
1515

1616
BROWSER_VERSIONS = [
1717
"v85",

javascript/node/selenium-webdriver/CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.24.1
2+
3+
- Close CDP websocket connection on driver.quit (#14501)
4+
15
## 4.24.0
26

37
- [js] expose selenium version for node.js (#14325)

javascript/node/selenium-webdriver/lib/webdriver.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,14 @@ class WebDriver {
784784
if (this.onQuit_) {
785785
return this.onQuit_.call(void 0)
786786
}
787+
788+
// Close the websocket connection on quit
789+
// If the websocket connection is not closed,
790+
// and we are running CDP sessions against the Selenium Grid,
791+
// the node process never exits since the websocket connection is open until the Grid is shutdown.
792+
if (this._wsConnection !== undefined) {
793+
this._wsConnection.close()
794+
}
787795
})
788796
}
789797

javascript/node/selenium-webdriver/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "selenium-webdriver",
3-
"version": "4.25.0-nightly202408281539",
3+
"version": "4.25.0-nightly202409161624",
44
"description": "The official WebDriver JavaScript bindings from the Selenium project",
55
"license": "Apache-2.0",
66
"keywords": [

0 commit comments

Comments
 (0)