window
Get the window object of the page that is currently active.
Syntax​
cy.window()
cy.window(options)
Usage​
Correct Usage
cy.window()
Arguments​
options (Object)
Pass in an options object to change the default behavior of cy.window().
| Option | Default | Description |
|---|---|---|
log | true | Displays the command in the Command log |
timeout | defaultCommandTimeout | Time to wait for cy.window() to resolve before timing out |
Yields ​
cy.window()yields thewindowobject.cy.window()is a query, and it is safe to chain further commands.