mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-19 06:38:45 -05:00
928 B
928 B
title, comments, description
| title | comments | description |
|---|---|---|
| pause | true |
cy.pause will stop command execution and allow you to interact with your app, resume commands when you're ready, or choose when to run the next command.
This does not set a debugger in your code, unlike cy.debug
| Returns | the subject from the previous command for further chaining |
| Timeout | cannot timeout |
cy.pause()
Stop command execution at the current command.
Options
Pass in an options object to change the default behavior of cy.pause.
cy.pause(options )
| Option | Default | Notes |
|---|---|---|
log |
true |
whether to display command in command log |
Usage
cy
.get("a").should("have.attr", "href").and("match", /dashboard/)
.pause()
.get("button").should("not.be.disabled")