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

Method init

javascript/selenium-webdriver/bidi/logInspector.js:55–58  ·  view source on GitHub ↗

* Subscribe to log event * @returns {Promise }

()

Source from the content-addressed store, hash-verified

53 * @returns {Promise<void>}
54 */
55 async init() {
56 this.bidi = await this._driver.getBidi()
57 await this.bidi.subscribe('log.entryAdded', this._browsingContextIds)
58 }
59
60 addCallback(eventType, callback) {
61 const id = ++this.#callbackId

Callers 1

getLogInspectorInstanceFunction · 0.95

Calls 1

subscribeMethod · 0.45

Tested by

no test coverage detected