Let's write a short test that finds a table row with text. If the text is not there, the test fails. If the text is present, we get the index of the row by invoking the jQuery "index" method and using cy.log or cy.print to print it to the Command Log.
cy.contains('tr', 'Charles')
.invoke('index')
// cypress-map
.print('Found row %d')
Find this example at http://glebbahmutov.com/cypress-examp...
En esta página del sitio puede ver el video en línea Find The Table Row With The Given Text And Print Its Index de Duración hora minuto segunda en buena calidad , que subió el usuario gleb bahmutov 08 mayo 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 685 veces y le gustó 31 a los espectadores. Disfruta viendo!