cypress click

JavaScript
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.htmlcy.get('whatever').type('Test all the things', { multiple: true });
Source

Also in JavaScript: