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.
SubscribeRelated
cy.get()cy.press()cy.click()cy.focus()cy.clear()cy.contains()