Questions tagged [cypress-traversal]

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.

1 questions
1
vote
2 answers

How can I find a button inside a div element searching by specific name in a row?

The page returns several records within a div element. I am trying to fetch the line that contains the name Kiyara.Hu and click on the respective edit button of that name. I tried the command below but it didn't…
Kakashi - Sensei
  • 371
  • 1
  • 6
  • 22