Cypress commands which allow querying using related elements, i.e based on the structure of the DOM. Useful when no unique identifiers are available for the target element.
Traversal commands are ones that allow testing of elements by specifying their relationship to another element.
For example, parent()
, children()
, sibling()
, next()
, prev()
, first()
, last()
.
Problems involving these commands appear quite frequently in Stackoverflow, the intent of this tag is to make it easier to identify related and duplicate questions.