[js] Avoid modifying CDP Grid endpoint
@@ -1232,16 +1232,8 @@ class WebDriver {
}
if (debuggerAddress.match(/\/se\/cdp/)) {
- if (debuggerAddress.match("ws:\/\/", "http:\/\/")) {
- return debuggerAddress.replace("ws:\/\/", "http:\/\/")
- }
- else if (debuggerAddress.match("wss:\/\/", "https:\/\/")) {
- return debuggerAddress.replace("wss:\/\/", "https:\/\/")
- }
- else {
return debuggerAddress
}
- }
const path = '/json/version'
let request = new http.Request('GET', path)
