* @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)
| 2567 | * the underlying DOM element. |
| 2568 | */ |
| 2569 | constructor(driver, id) { |
| 2570 | /** @private {!WebDriver} */ |
| 2571 | this.driver_ = driver |
| 2572 | |
| 2573 | /** @private {!Promise<string>} */ |
| 2574 | this.id_ = Promise.resolve(id) |
| 2575 | |
| 2576 | /** @private {!Logger} */ |
| 2577 | this.log_ = logging.getLogger(logging.Type.DRIVER) |
| 2578 | } |
| 2579 | |
| 2580 | /** |
| 2581 | * @param {string} id The raw ID. |