📜  cypress click - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:39.704000             🧑  作者: Mango

代码示例1
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