Skip to content
masterclass Buddy

Cypress · Function

cy.type

Use cy.type() to enter text or keyboard sequences into a supported DOM element. It can also test shortcuts, modifiers, contenteditable fields, and some special input types.

Last updated

Syntax

.type(text)
.type(text, options)

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

Subscribe
  • cy.get()
  • cy.press()
  • cy.click()
  • cy.focus()
  • cy.clear()
  • cy.contains()

Source: cy.type() | Cypress API Documentation. Checked 2026-11-03.