equals method

bool equals(
  1. WebElement other
)

Are these two elements the same underlying element in the DOM.

Implementation

bool equals(WebElement other) => other.driver == driver && other.id == id;