MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / init

Method init

javascript/selenium-webdriver/bidi/browser.js:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 async init() {
30 if (!(await this._driver.getCapabilities()).get('webSocketUrl')) {
31 throw Error('WebDriver instance must support BiDi protocol')
32 }
33
34 this.bidi = await this._driver.getBidi()
35 }
36
37 /**
38 * Creates a new user context.

Callers 1

getBrowserInstanceFunction · 0.95

Calls 4

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

Tested by

no test coverage detected