Cypress - Element Interactions
Which of the following is the correct syntax to click a button with id
submitBtn using Cypress?submitBtn using Cypress?cy.get() with the CSS selector, then call .click() on it.cy.click() with a selector, which is invalid. cy.find('#submitBtn').click() uses cy.find(), which is not a Cypress command. cy.click().get('#submitBtn') calls cy.click() before selecting, which is incorrect.cy.get(), then .click() [OK]cy.click() directly with a selectorcy.find()click() before selecting the element15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions