Skip to content
masterclass Buddy

Cypress · Method

cy.document

Gets the window.document for the active application page. Use it to inspect document properties, wait for document state, or trigger document-level events.

Last updated

Since
0.6.14

Syntax

cy.document()
cy.document(options)

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

Subscribe
  • cy.get()
  • cy.origin()
  • cy.title()
  • cy.window()

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