Cypress · Method
cy.blur
cy.blur() removes focus from a focused element and fires its blur-related events. Use it to test validation, autosave, or other behavior that runs when a field loses focus.
Last updated
- Since
- 0.20.0
Syntax
.blur()
.blur(options)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
.focus()cy.focused().type()