Uploaded October 2023 | Updated September 2026, 1 week ago
Imagine you want to find all elements that have some "data-*" attribute and confirm they also have "href" attribute. How would you select them? This video shows how to select all elements using wildcard selector "*" and then filter the elements using cy.filter command before checking each element using cy.each. Find the full example at glebbahmutov.com/cypress-examples
Imagine you want to find all elements that have some "data-*" attribute and confirm they also have "href" attribute. How would you select them? This video shows how to select all elements using wildcard selector "*" and then filter the elements using cy.filter command before checking each element using cy.each. Find the full example at glebbahmutov.com/cypress-examples










