* @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)
| 2530 | * the underlying DOM element. |
| 2531 | */ |
| 2532 | constructor(driver, id) { |
| 2533 | /** @private {!WebDriver} */ |
| 2534 | this.driver_ = driver |
| 2535 | |
| 2536 | /** @private {!Promise<string>} */ |
| 2537 | this.id_ = Promise.resolve(id) |
| 2538 | |
| 2539 | /** @private {!Logger} */ |
| 2540 | this.log_ = logging.getLogger(logging.Type.DRIVER) |
| 2541 | } |
| 2542 | |
| 2543 | /** |
| 2544 | * @param {string} id The raw ID. |