MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / equals

Method equals

javascript/selenium-webdriver/lib/webdriver.js:2705–2710  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

executeScriptMethod · 0.65

Tested by

no test coverage detected