Cypress - Element Interactions
Which of the following is a valid way to click a button with class
submit-btn using cy.click()?submit-btn using cy.click()?cy.get() selects elements, then .click() clicks them. So cy.get('.submit-btn').click() is correct.cy.click() does not accept selectors directly, cy.find() is used on elements, and cy.clickButton() is not a Cypress command.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions