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

Method init

javascript/selenium-webdriver/bidi/scriptManager.js:84–91  ·  view source on GitHub ↗
(browsingContextIds)

Source from the content-addressed store, hash-verified

82 }
83
84 async init(browsingContextIds) {
85 if (!(await this._driver.getCapabilities()).get('webSocketUrl')) {
86 throw Error('WebDriver instance must support BiDi protocol')
87 }
88
89 this.bidi = await this._driver.getBidi()
90 this._browsingContextIds = browsingContextIds
91 }
92
93 /**
94 * Disowns the handles in the specified realm.

Callers 1

getScriptManagerInstanceFunction · 0.95

Calls 4

ErrorFunction · 0.85
getBidiMethod · 0.80
getMethod · 0.65
getCapabilitiesMethod · 0.65

Tested by

no test coverage detected