mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-18 22:28:38 -05:00
929 B
929 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')