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

Method #init

javascript/selenium-webdriver/lib/script.js:40–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 // Since it involves awaiting to get the instance and then another await to call the method.
39 // Using this allows the user to do this "await driver.script().addJavaScriptErrorHandler(callback)"
40 async #init() {
41 if (this.#logInspector !== undefined) {
42 return
43 }
44 this.#logInspector = await logInspector(this.#driver)
45 }
46
47 async #initScript() {
48 if (this.#script !== undefined) {

Calls

no outgoing calls

Tested by

no test coverage detected