{
  "doc": {
    "id": "api/commands/pause",
    "title": "pause | Cypress Documentation",
    "description": "Stop `cy` commands from running and allow interaction with the application under test.",
    "section": "api",
    "source_path": "/llm/markdown/api/commands/pause.md",
    "version": "48b03b5502f7aea1d0454750cce208f775403542",
    "updated_at": "2026-05-20T19:00:20.270Z",
    "headings": [
      {
        "id": "api/commands/pause#pause",
        "text": "pause",
        "level": 1
      },
      {
        "id": "api/commands/pause#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/commands/pause#usage",
        "text": "Usage",
        "level": 3
      },
      {
        "id": "api/commands/pause#arguments",
        "text": "Arguments",
        "level": 3
      },
      {
        "id": "api/commands/pause#yields-learn-about-subject-management",
        "text": "Yields Learn about subject management",
        "level": 3
      },
      {
        "id": "api/commands/pause#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/commands/pause#no-args",
        "text": "No Args",
        "level": 3
      },
      {
        "id": "api/commands/pause#pause-after-assertion",
        "text": "Pause after assertion",
        "level": 4
      },
      {
        "id": "api/commands/pause#rules",
        "text": "Rules",
        "level": 2
      },
      {
        "id": "api/commands/pause#requirements-learn-about-chaining-commands",
        "text": "Requirements Learn about chaining commands",
        "level": 3
      },
      {
        "id": "api/commands/pause#assertions-learn-about-assertions",
        "text": "Assertions Learn about assertions",
        "level": 3
      },
      {
        "id": "api/commands/pause#timeouts-learn-about-timeouts",
        "text": "Timeouts Learn about timeouts",
        "level": 3
      },
      {
        "id": "api/commands/pause#command-log",
        "text": "Command Log",
        "level": 2
      },
      {
        "id": "api/commands/pause#click-next",
        "text": "Click \"Next\"",
        "level": 4
      },
      {
        "id": "api/commands/pause#click-next-again",
        "text": "Click \"Next\" again",
        "level": 4
      },
      {
        "id": "api/commands/pause#click-next-again",
        "text": "Click \"Next\" again",
        "level": 4
      },
      {
        "id": "api/commands/pause#click-next-again",
        "text": "Click \"Next\" again",
        "level": 4
      },
      {
        "id": "api/commands/pause#click-next-again",
        "text": "Click \"Next\" again",
        "level": 4
      },
      {
        "id": "api/commands/pause#click-next-again-then-resume",
        "text": "Click \"Next\" again, then 'Resume'",
        "level": 4
      },
      {
        "id": "api/commands/pause#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/commands/pause#syntax",
      "doc_id": "api/commands/pause",
      "heading": "Syntax",
      "heading_level": 2,
      "content_markdown": "## Syntax\n\n```\n.pause().pause(options)cy.pause()cy.pause(options)\n```\n\n### Usage\n\n**Correct Usage**\n\n```\ncy.pause().getCookie('app') // Pause at the beginning of commandscy.get('nav').pause() // Pause after the 'get' commands yield\n```\n\n### Arguments\n\n**options _(Object)_**\n\nPass in an options object to change the default behavior of `.pause()`.\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `log` | `true` | Displays the command in the [Command log](/llm/markdown/app/core-concepts/open-mode.md#Command-Log) |\n\n### Yields [Learn about subject management](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Subject-Management)\n\n*   `.pause()` yields the same subject it was given.\n*   It is [unsafe](/llm/markdown/app/core-concepts/retry-ability.md#Only-queries-are-retried) to chain further commands that rely on a DOM element as the subject after `.pause()`.\n",
      "section": "api",
      "anchors": [
        "syntax"
      ],
      "path": "/llm/json/chunked/api/commands/pause.json",
      "token_estimate": 137
    },
    {
      "id": "api/commands/pause#arguments",
      "doc_id": "api/commands/pause",
      "heading": "Arguments",
      "heading_level": 3,
      "content_markdown": "### Arguments\n\n**options _(Object)_**\n\nPass in an options object to change the default behavior of `.pause()`.\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `log` | `true` | Displays the command in the [Command log](/llm/markdown/app/core-concepts/open-mode.md#Command-Log) |\n",
      "section": "api",
      "anchors": [
        "arguments"
      ],
      "path": "/llm/json/chunked/api/commands/pause.json",
      "token_estimate": 57
    },
    {
      "id": "api/commands/pause#yields-learn-about-subject-management",
      "doc_id": "api/commands/pause",
      "heading": "Yields Learn about subject management",
      "heading_level": 3,
      "content_markdown": "### Yields [Learn about subject management](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Subject-Management)\n\n*   `.pause()` yields the same subject it was given.\n*   It is [unsafe](/llm/markdown/app/core-concepts/retry-ability.md#Only-queries-are-retried) to chain further commands that rely on a DOM element as the subject after `.pause()`.\n",
      "section": "api",
      "anchors": [
        "yields-learn-about-subject-management"
      ],
      "path": "/llm/json/chunked/api/commands/pause.json",
      "token_estimate": 45
    },
    {
      "id": "api/commands/pause#rules",
      "doc_id": "api/commands/pause",
      "heading": "Rules",
      "heading_level": 2,
      "content_markdown": "## Rules\n\n### Requirements [Learn about chaining commands](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Chains-of-Commands)\n\n*   `.pause()` can be chained off of `cy` or off another command.\n\n### Assertions [Learn about assertions](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Assertions)\n\n*   `.pause()` is a utility command.\n*   `.pause()` will not run assertions. Assertions will pass through as if this command did not exist.\n\n### Timeouts [Learn about timeouts](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Timeouts)\n\n*   `.pause()` cannot time out.\n",
      "section": "api",
      "anchors": [
        "rules"
      ],
      "path": "/llm/json/chunked/api/commands/pause.json",
      "token_estimate": 77
    },
    {
      "id": "api/commands/pause#command-log",
      "doc_id": "api/commands/pause",
      "heading": "Command Log",
      "heading_level": 2,
      "content_markdown": "## Command Log\n\n**_Pause and step through each `.click()` command_**\n\n```\ncy.get('#action-canvas').click(80, 75)cy.pause()cy.get('#action-canvas').click(170, 75)cy.get('#action-canvas').click(80, 165)cy.get('#action-canvas').click(100, 185)cy.get('#action-canvas').click(125, 190)cy.get('#action-canvas').click(150, 185)cy.get('#action-canvas').click(170, 165)\n```\n\nThe commands above will display in the Command Log as:\n\nWhen clicking on \"Next: 'click'\" at the top of the Command Log, the Command Log will run only the next command and pause again.\n\n#### Click \"Next\"\n\n#### Click \"Next\" again\n\n#### Click \"Next\" again\n\n#### Click \"Next\" again\n\n#### Click \"Next\" again\n\n#### Click \"Next\" again, then 'Resume'\n",
      "section": "api",
      "anchors": [
        "command-log"
      ],
      "path": "/llm/json/chunked/api/commands/pause.json",
      "token_estimate": 105
    }
  ]
}