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

Method close

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

* Unsubscribe to log event * @returns {Promise }

()

Source from the content-addressed store, hash-verified

334 * @returns {Promise<void>}
335 */
336 async close() {
337 if (
338 this._browsingContextIds !== null &&
339 this._browsingContextIds !== undefined &&
340 this._browsingContextIds.length > 0
341 ) {
342 await this.bidi.unsubscribe('log.entryAdded', this._browsingContextIds)
343 } else {
344 await this.bidi.unsubscribe('log.entryAdded')
345 }
346 }
347}
348
349/**

Callers

nothing calls this directly

Calls 1

unsubscribeMethod · 0.45

Tested by

no test coverage detected