Find The Table Row With The Given Text And Print Its Index

Publicado em: 08 Maio 2023
no canal de: gleb bahmutov
685
31

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...


Nesta página do site você pode assistir ao vídeo on-line Find The Table Row With The Given Text And Print Its Index duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário gleb bahmutov 08 Maio 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 685 vezes e gostou 31 espectadores. Boa visualização!