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 +4 -0
- package/lib/webdriver.js +8 -0
- package/package.json +1 -1
package/CHANGES.md
CHANGED
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
|
|