* @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)
| 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 |