Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cypress click

cy.get('.btn').click()          // Click on button
cy.focused().click()            // Click on el with focus
cy.contains('Welcome').click()  // Click on first el containing 'Welcome'
//https://docs.cypress.io/api/commands/click.html
 
PREVIOUS NEXT
Tagged: #cypress #click
ADD COMMENT
Topic
Name
1+7 =