{
  "doc": {
    "id": "api/commands/pause",
    "title": "cy.pause()",
    "description": "Stop Cypress commands from running and allow interaction with the application under test.",
    "section": "api",
    "source_path": "/llm/markdown/api/commands/pause.md",
    "version": "fbc9225067c51c52ee13224e3b702cf8a025ec12",
    "updated_at": "2026-08-14T12:36:26.878Z",
    "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",
        "text": "Yields",
        "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",
        "text": "Requirements",
        "level": 3
      },
      {
        "id": "api/commands/pause#assertions",
        "text": "Assertions",
        "level": 3
      },
      {
        "id": "api/commands/pause#timeouts",
        "text": "Timeouts",
        "level": 3
      },
      {
        "id": "api/commands/pause#command-log",
        "text": "Command Log",
        "level": 2
      },
      {
        "id": "api/commands/pause#click-next",
        "text": "Click \"Next\"",
        "level": 3
      },
      {
        "id": "api/commands/pause#click-next-again",
        "text": "Click \"Next\" again",
        "level": 3
      },
      {
        "id": "api/commands/pause#click-next-again",
        "text": "Click \"Next\" again",
        "level": 3
      },
      {
        "id": "api/commands/pause#click-next-again",
        "text": "Click \"Next\" again",
        "level": 3
      },
      {
        "id": "api/commands/pause#click-next-again",
        "text": "Click \"Next\" again",
        "level": 3
      },
      {
        "id": "api/commands/pause#click-next-again-then-resume",
        "text": "Click \"Next\" again, then 'Resume'",
        "level": 3
      },
      {
        "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\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": 132
    },
    {
      "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",
      "doc_id": "api/commands/pause",
      "heading": "Yields",
      "heading_level": 3,
      "content_markdown": "### Yields\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"
      ],
      "path": "/llm/json/chunked/api/commands/pause.json",
      "token_estimate": 40
    },
    {
      "id": "api/commands/pause#rules",
      "doc_id": "api/commands/pause",
      "heading": "Rules",
      "heading_level": 2,
      "content_markdown": "## Rules\n\n### Requirements\n\n*   `.pause()` can be chained off of `cy` or off another command.\n\n### 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\n\n*   `.pause()` cannot time out.\n",
      "section": "api",
      "anchors": [
        "rules"
      ],
      "path": "/llm/json/chunked/api/commands/pause.json",
      "token_estimate": 64
    },
    {
      "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
    }
  ]
}