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

Method init

javascript/selenium-webdriver/bidi/storage.js:34–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 async init() {
35 if (!(await this._driver.getCapabilities()).get('webSocketUrl')) {
36 throw Error('WebDriver instance must support BiDi protocol')
37 }
38
39 this.bidi = await this._driver.getBidi()
40 }
41
42 /**
43 * Retrieves cookies based on the provided filter and partition.

Callers 1

getStorageInstanceFunction · 0.95

Calls 4

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

Tested by

no test coverage detected