Last active
November 18, 2021 22:12
-
-
Save filiphric/490ad18f6742f1911087f466e6db27de to your computer and use it in GitHub Desktop.
cy.contains() comand
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// selects any element with the text "Dashboard" | |
cy.contains('Dashboard') | |
// selects a h1 element with the text "Dashboard" | |
cy.contains('h1', 'Dashboard') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment