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

Method constructor

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

* @param {!WebDriver} driver The driver controlling the browser this alert * is attached to. * @param {string} text The message text displayed with this alert.

(driver, text)

Source from the content-addressed store, hash-verified

3402 * @param {string} text The message text displayed with this alert.
3403 */
3404 constructor(driver, text) {
3405 /** @private {!WebDriver} */
3406 this.driver_ = driver
3407
3408 /** @private {!Promise<string>} */
3409 this.text_ = Promise.resolve(text)
3410 }
3411
3412 /**
3413 * Retrieves the message text displayed with this alert. For instance, if the

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected