// Whether an element with this id exists, via the O(1) id index — cheaper than getElementById( id).nonempty() because no handle is materialized
cy.hasElementWithId(id: string): booleanWhether an element with this id exists, via the O(1) id index — cheaper than getElementById( id).nonempty() because no handle is materialized.
| Name | Description |
|---|---|
id: string | the element id |
Returns
booleantrue when the graph holds that element