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

Method constructor

javascript/selenium-webdriver/bidi/domain.js:49–54  ·  view source on GitHub ↗
(bidi, token)

Source from the content-addressed store, hash-verified

47 #bidi
48
49 constructor(bidi, token) {
50 if (token !== DOMAIN_TOKEN) {
51 throw new TypeError(`${new.target.name} must be constructed via ${new.target.name}.create(driver), not \`new\``)
52 }
53 this.#bidi = bidi
54 }
55
56 static async connect(driver) {
57 return getBidiConnection(driver)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected