// Look up one element by id through the O(1) id index
cy.getElementById(id: string): Collection<NodeData, EdgeData>Look up one element by id through the O(1) id index.
| Name | Description |
|---|---|
id: string | the element id |
Returns
Collection<NodeData, EdgeData>a collection of one element, or an empty collection when no element has that id
Also spelled cy.$id, cy.byId.