Cypress - Selecting Elements
You want to click the second-to-last item in a list of elements matched by
cy.get('.item'). Which Cypress command chain correctly achieves this?cy.get('.item'). Which Cypress command chain correctly achieves this?eq(n) supports negative indices: eq(-1) is last, eq(-2) is second-to-last.eq(-2) = second-to-last [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions