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

Method constructor

javascript/selenium-webdriver/bidi/scriptTypes.js:67–75  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

65 */
66class Source {
67 constructor(source) {
68 this._browsingContextId = null
69 this._realmId = source.realm
70
71 // Browsing context is returned as an optional parameter
72 if ('context' in source) {
73 this._browsingContextId = source.context
74 }
75 }
76
77 /**
78 * Get the browsing context ID.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected