selenium-webdriver 4.24.0 → 4.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 4.24.1
2
+
3
+ - Close CDP websocket connection on driver.quit (#14501)
4
+
1
5
  ## 4.24.0
2
6
 
3
7
  - [js] expose selenium version for node.js (#14325)
package/lib/webdriver.js CHANGED
@@ -784,6 +784,14 @@ class WebDriver {
784
784
  if (this.onQuit_) {
785
785
  return this.onQuit_.call(void 0)
786
786
  }
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
+ }
787
795
  })
788
796
  }
789
797
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "selenium-webdriver",
3
- "version": "4.24.0",
3
+ "version": "4.24.1",
4
4
  "description": "The official WebDriver JavaScript bindings from the Selenium project",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [