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