Skip to content
masterclass Buddy

Cypress · Function

cy.window

Gets the window object for the active application under test. You can chain commands and assertions to inspect it or wait for application state.

Last updated

Since
0.11.6

Syntax

cy.window()
cy.window(options)

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

Subscribe
  • cy.visit()
  • cy.document()
  • cy.its()

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