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

Method constructor

javascript/selenium-webdriver/lib/webdriver.js:2658–2667  ·  view source on GitHub ↗

* @param {!WebDriver} driver the parent WebDriver instance for this element. * @param {(!IThenable |string)} id The server-assigned opaque ID for * the underlying DOM element.

(driver, id)

Source from the content-addressed store, hash-verified

2656 * the underlying DOM element.
2657 */
2658 constructor(driver, id) {
2659 /** @private {!WebDriver} */
2660 this.driver_ = driver
2661
2662 /** @private {!Promise<string>} */
2663 this.id_ = Promise.resolve(id)
2664
2665 /** @private {!Logger} */
2666 this.log_ = logging.getLogger(logging.Type.DRIVER)
2667 }
2668
2669 /**
2670 * @param {string} id The raw ID.

Callers

nothing calls this directly

Calls 2

getLoggerMethod · 0.80
resolveMethod · 0.45

Tested by

no test coverage detected