MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / getBidi

Method getBidi

javascript/selenium-webdriver/lib/webdriver.js:1308–1315  ·  view source on GitHub ↗

* Initiates bidi connection using 'webSocketUrl' * @returns {BIDI}

()

Source from the content-addressed store, hash-verified

1306 * @returns {BIDI}
1307 */
1308 async getBidi() {
1309 if (this._bidiConnection === undefined) {
1310 const caps = await this.getCapabilities()
1311 let WebSocketUrl = caps['map_'].get('webSocketUrl')
1312 this._bidiConnection = new BIDI(WebSocketUrl.replace('localhost', '127.0.0.1'))
1313 }
1314 return this._bidiConnection
1315 }
1316
1317 /**
1318 * Retrieves 'webSocketDebuggerUrl' by sending a http request using debugger address

Callers 11

initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80

Calls 2

getCapabilitiesMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected