How in Cypress, find a card with a specific text and click on a specific button? #22615
Answered
by
jjhelguero
Guid21
asked this question in
Questions and Help
-
Beta Was this translation helpful? Give feedback.
Answered by
jjhelguero
Jul 4, 2022
Replies: 2 comments 1 reply
-
You can use Chai Assertions like |
Beta Was this translation helpful? Give feedback.
0 replies
-
Based on your html, you'll want to find the card by using a selector and its' text by using cy.contains('.card', 'name 1')
.find('[data-test="more-menu"]')
.click() |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
emilyrohrbough
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on your html, you'll want to find the card by using a selector and its' text by using
.contains()