* Compares two WebElements for equality. * * @param {!WebElement} a A WebElement. * @param {!WebElement} b A WebElement. * @return {!Promise } A promise that will be * resolved to whether the two WebElements are equal.
(a, b)
| 2703 | * resolved to whether the two WebElements are equal. |
| 2704 | */ |
| 2705 | static async equals(a, b) { |
| 2706 | if (a === b) { |
| 2707 | return true |
| 2708 | } |
| 2709 | return a.driver_.executeScript('return arguments[0] === arguments[1]', a, b) |
| 2710 | } |
| 2711 | |
| 2712 | /** @return {!WebDriver} The parent driver for this instance. */ |
| 2713 | getDriver() { |
nothing calls this directly
no test coverage detected