Skip to content
masterclass Buddy

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.

Subscribe
  • .focus()
  • cy.focused()
  • .type()

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