You can find the index of a DOM element among its siblings. For example, to confirm that the "Age" column is the third column of the table, you can invoke the jQuery "index" method and confirm the yielded value
cy.contains('table thead th', 'Age')
.invoke('index')
.should('equal', 3)
Find this example and many more at https://glebbahmutov.com/cypress-exam...
Watch video Find Table Column Index online, duration hours minute second in high quality that is uploaded to the channel gleb bahmutov 05 June 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 565 times and liked it 21 visitors.