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.
SubscribeRelated
cy.get()cy.origin()cy.title()cy.window()