Cypress - Element Interactions
Consider this code snippet:
What does this command do?
cy.get('.nav-item').eq(2).click()What does this command do?
cy.get('.nav-item').eq(2).click()eq(2) command selects the element at index 2 (zero-based), which is the third element..click() clicks it.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions