Skip to content
masterclass Buddy

Cypress · Function

cy.click

cy.click() clicks a DOM element yielded by another Cypress command. It waits for the element to become actionable and supports positions, coordinates, options, and key modifiers.

Last updated

Syntax

.click()
.click(options)
.click(position)
.click(position, options)
.click(x, y)
.click(x, y, options)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • .check()
  • .dblclick()
  • .rightclick()
  • .select()
  • .submit()
  • .type()
  • cy.intercept()
  • cy.wait()

Source: click | Cypress API Documentation. Checked 2026-11-03.