{
  "doc": {
    "id": "api/commands/uncheck",
    "title": "uncheck | Cypress Documentation",
    "description": "Uncheck checkbox(es) in Cypress.",
    "section": "api",
    "source_path": "/llm/markdown/api/commands/uncheck.md",
    "version": "e6988a974973e9090ce70406c38cb2b9e0eac9fa",
    "updated_at": "2026-05-15T15:50:22.536Z",
    "headings": [
      {
        "id": "api/commands/uncheck#uncheck",
        "text": "uncheck",
        "level": 1
      },
      {
        "id": "api/commands/uncheck#syntax",
        "text": "Syntax",
        "level": 2
      },
      {
        "id": "api/commands/uncheck#usage",
        "text": "Usage",
        "level": 3
      },
      {
        "id": "api/commands/uncheck#arguments",
        "text": "Arguments",
        "level": 3
      },
      {
        "id": "api/commands/uncheck#yields-learn-about-subject-management",
        "text": "Yields Learn about subject management",
        "level": 3
      },
      {
        "id": "api/commands/uncheck#examples",
        "text": "Examples",
        "level": 2
      },
      {
        "id": "api/commands/uncheck#no-args",
        "text": "No Args",
        "level": 3
      },
      {
        "id": "api/commands/uncheck#uncheck-all-checkboxes",
        "text": "Uncheck all checkboxes",
        "level": 4
      },
      {
        "id": "api/commands/uncheck#uncheck-element-with-the-id-saveusername",
        "text": "Uncheck element with the id 'saveUserName'",
        "level": 4
      },
      {
        "id": "api/commands/uncheck#value",
        "text": "Value",
        "level": 3
      },
      {
        "id": "api/commands/uncheck#uncheck-the-checkbox-with-the-value-of-ga",
        "text": "Uncheck the checkbox with the value of 'ga'",
        "level": 4
      },
      {
        "id": "api/commands/uncheck#values",
        "text": "Values",
        "level": 3
      },
      {
        "id": "api/commands/uncheck#uncheck-the-checkboxes-with-the-values-ga-and-ca",
        "text": "Uncheck the checkboxes with the values 'ga' and 'ca'",
        "level": 4
      },
      {
        "id": "api/commands/uncheck#notes",
        "text": "Notes",
        "level": 2
      },
      {
        "id": "api/commands/uncheck#actionability",
        "text": "Actionability",
        "level": 3
      },
      {
        "id": "api/commands/uncheck#the-element-must-first-reach-actionability",
        "text": "The element must first reach actionability",
        "level": 4
      },
      {
        "id": "api/commands/uncheck#rules",
        "text": "Rules",
        "level": 2
      },
      {
        "id": "api/commands/uncheck#requirements-learn-about-chaining-commands",
        "text": "Requirements Learn about chaining commands",
        "level": 3
      },
      {
        "id": "api/commands/uncheck#assertions-learn-about-assertions",
        "text": "Assertions Learn about assertions",
        "level": 3
      },
      {
        "id": "api/commands/uncheck#timeouts-learn-about-timeouts",
        "text": "Timeouts Learn about timeouts",
        "level": 3
      },
      {
        "id": "api/commands/uncheck#command-log",
        "text": "Command Log",
        "level": 2
      },
      {
        "id": "api/commands/uncheck#history",
        "text": "History",
        "level": 2
      },
      {
        "id": "api/commands/uncheck#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "api/commands/uncheck#syntax",
      "doc_id": "api/commands/uncheck",
      "heading": "Syntax",
      "heading_level": 2,
      "content_markdown": "## Syntax\n\n```\n.uncheck().uncheck(value).uncheck(values).uncheck(options).uncheck(value, options).uncheck(values, options)\n```\n\n### Usage\n\n**Correct Usage**\n\n```\ncy.get('[type=\"checkbox\"]').uncheck() // Unchecks checkbox element\n```\n\n**Incorrect Usage**\n\n```\ncy.uncheck('[type=\"checkbox\"]') // Errors, cannot be chained off 'cy'cy.get('p:first').uncheck() // Errors, '.get()' does not yield checkbox\n```\n\n### Arguments\n\n**value _(String)_**\n\nValue of checkbox that should be unchecked.\n\n**values _(Array)_**\n\nValues of checkboxes that should be unchecked.\n\n**options _(Object)_**\n\nPass in an options object to change the default behavior of `.uncheck()`.\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `animationDistanceThreshold` | [`animationDistanceThreshold`](/llm/markdown/app/references/configuration.md#Actionability) | The distance in pixels an element must exceed over time to be [considered animating](/llm/markdown/app/core-concepts/interacting-with-elements.md#Animations). |\n| `force` | `false` | Forces the action, disables [waiting for actionability](#Assertions) |\n| `log` | `true` | Displays the command in the [Command log](/llm/markdown/app/core-concepts/open-mode.md#Command-Log) |\n| `scrollBehavior` | [`scrollBehavior`](/llm/markdown/app/references/configuration.md#Actionability) | Viewport position to where an element [should be scrolled](/llm/markdown/app/core-concepts/interacting-with-elements.md#Scrolling) before executing the command |\n| `timeout` | [`defaultCommandTimeout`](/llm/markdown/app/references/configuration.md#Timeouts) | Time to wait for `.uncheck()` to resolve before [timing out](#Timeouts) |\n| `waitForAnimations` | [`waitForAnimations`](/llm/markdown/app/references/configuration.md#Actionability) | Whether to wait for elements to [finish animating](/llm/markdown/app/core-concepts/interacting-with-elements.md#Animations) before executing the command. |\n\n### Yields [Learn about subject management](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Subject-Management)\n\n*   `.uncheck()` 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 the subject after `.uncheck()`.\n",
      "section": "api",
      "anchors": [
        "syntax"
      ],
      "path": "/llm/json/chunked/api/commands/uncheck.json",
      "token_estimate": 285
    },
    {
      "id": "api/commands/uncheck#usage",
      "doc_id": "api/commands/uncheck",
      "heading": "Usage",
      "heading_level": 3,
      "content_markdown": "### Usage\n\n**Correct Usage**\n\n```\ncy.get('[type=\"checkbox\"]').uncheck() // Unchecks checkbox element\n```\n\n**Incorrect Usage**\n\n```\ncy.uncheck('[type=\"checkbox\"]') // Errors, cannot be chained off 'cy'cy.get('p:first').uncheck() // Errors, '.get()' does not yield checkbox\n```\n",
      "section": "api",
      "anchors": [
        "usage"
      ],
      "path": "/llm/json/chunked/api/commands/uncheck.json",
      "token_estimate": 40
    },
    {
      "id": "api/commands/uncheck#arguments",
      "doc_id": "api/commands/uncheck",
      "heading": "Arguments",
      "heading_level": 3,
      "content_markdown": "### Arguments\n\n**value _(String)_**\n\nValue of checkbox that should be unchecked.\n\n**values _(Array)_**\n\nValues of checkboxes that should be unchecked.\n\n**options _(Object)_**\n\nPass in an options object to change the default behavior of `.uncheck()`.\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `animationDistanceThreshold` | [`animationDistanceThreshold`](/llm/markdown/app/references/configuration.md#Actionability) | The distance in pixels an element must exceed over time to be [considered animating](/llm/markdown/app/core-concepts/interacting-with-elements.md#Animations). |\n| `force` | `false` | Forces the action, disables [waiting for actionability](#Assertions) |\n| `log` | `true` | Displays the command in the [Command log](/llm/markdown/app/core-concepts/open-mode.md#Command-Log) |\n| `scrollBehavior` | [`scrollBehavior`](/llm/markdown/app/references/configuration.md#Actionability) | Viewport position to where an element [should be scrolled](/llm/markdown/app/core-concepts/interacting-with-elements.md#Scrolling) before executing the command |\n| `timeout` | [`defaultCommandTimeout`](/llm/markdown/app/references/configuration.md#Timeouts) | Time to wait for `.uncheck()` to resolve before [timing out](#Timeouts) |\n| `waitForAnimations` | [`waitForAnimations`](/llm/markdown/app/references/configuration.md#Actionability) | Whether to wait for elements to [finish animating](/llm/markdown/app/core-concepts/interacting-with-elements.md#Animations) before executing the command. |\n",
      "section": "api",
      "anchors": [
        "arguments"
      ],
      "path": "/llm/json/chunked/api/commands/uncheck.json",
      "token_estimate": 196
    },
    {
      "id": "api/commands/uncheck#yields-learn-about-subject-management",
      "doc_id": "api/commands/uncheck",
      "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*   `.uncheck()` 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 the subject after `.uncheck()`.\n",
      "section": "api",
      "anchors": [
        "yields-learn-about-subject-management"
      ],
      "path": "/llm/json/chunked/api/commands/uncheck.json",
      "token_estimate": 40
    },
    {
      "id": "api/commands/uncheck#examples",
      "doc_id": "api/commands/uncheck",
      "heading": "Examples",
      "heading_level": 2,
      "content_markdown": "## Examples\n\n### No Args\n\n#### Uncheck all checkboxes\n\n```\ncy.get(':checkbox').uncheck()\n```\n\n#### Uncheck element with the id 'saveUserName'\n\n```\ncy.get('#saveUserName').uncheck()\n```\n\n### Value\n\n#### Uncheck the checkbox with the value of 'ga'\n\n```\ncy.get('input[type=\"checkbox\"]').uncheck(['ga'])\n```\n\n### Values\n\n#### Uncheck the checkboxes with the values 'ga' and 'ca'\n\n```\ncy.get('[type=\"checkbox\"]').uncheck(['ga', 'ca'])\n```\n",
      "section": "api",
      "anchors": [
        "examples"
      ],
      "path": "/llm/json/chunked/api/commands/uncheck.json",
      "token_estimate": 69
    },
    {
      "id": "api/commands/uncheck#rules",
      "doc_id": "api/commands/uncheck",
      "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*   `.uncheck()` requires being chained off a command that yields DOM element(s).\n*   `.uncheck()` requires the element to have type `checkbox`.\n\n### Assertions [Learn about assertions](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Assertions)\n\n*   `.uncheck()` will automatically wait for the element to reach an [actionable state](/llm/markdown/app/core-concepts/interacting-with-elements.md).\n*   `.uncheck()` will automatically [retry](/llm/markdown/app/core-concepts/retry-ability.md) until all chained assertions have passed.\n\n### Timeouts [Learn about timeouts](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Timeouts)\n\n*   `.uncheck()` can time out waiting for the element to reach an [actionable state](/llm/markdown/app/core-concepts/interacting-with-elements.md).\n*   `.uncheck()` can time out waiting for assertions you've added to pass.\n",
      "section": "api",
      "anchors": [
        "rules"
      ],
      "path": "/llm/json/chunked/api/commands/uncheck.json",
      "token_estimate": 119
    },
    {
      "id": "api/commands/uncheck#timeouts-learn-about-timeouts",
      "doc_id": "api/commands/uncheck",
      "heading": "Timeouts Learn about timeouts",
      "heading_level": 3,
      "content_markdown": "### Timeouts [Learn about timeouts](/llm/markdown/app/core-concepts/introduction-to-cypress.md#Timeouts)\n\n*   `.uncheck()` can time out waiting for the element to reach an [actionable state](/llm/markdown/app/core-concepts/interacting-with-elements.md).\n*   `.uncheck()` can time out waiting for assertions you've added to pass.\n",
      "section": "api",
      "anchors": [
        "timeouts-learn-about-timeouts"
      ],
      "path": "/llm/json/chunked/api/commands/uncheck.json",
      "token_estimate": 41
    },
    {
      "id": "api/commands/uncheck#command-log",
      "doc_id": "api/commands/uncheck",
      "heading": "Command Log",
      "heading_level": 2,
      "content_markdown": "## Command Log\n\n**_Uncheck the first checkbox_**\n\n```\ncy.get('[data-js=\"choose-all\"]')  .click()  .find('input[type=\"checkbox\"]')  .first()  .uncheck()\n```\n\nThe commands above will display in the Command Log as:\n\nWhen clicking on `uncheck` within the command log, the console outputs the following:\n",
      "section": "api",
      "anchors": [
        "command-log"
      ],
      "path": "/llm/json/chunked/api/commands/uncheck.json",
      "token_estimate": 49
    },
    {
      "id": "api/commands/uncheck#history",
      "doc_id": "api/commands/uncheck",
      "heading": "History",
      "heading_level": 2,
      "content_markdown": "## History\n\n| Version | Changes |\n| --- | --- |\n| [6.1.0](/llm/markdown/app/references/changelog.md#6-1-0) | Added option `scrollBehavior` |\n| [0.6.12](/llm/markdown/app/references/changelog.md#0-6-12) | Added option `force` |\n| [0.3.3](/llm/markdown/app/references/changelog.md#0-3-3) | `.uncheck()` command added |\n",
      "section": "api",
      "anchors": [
        "history"
      ],
      "path": "/llm/json/chunked/api/commands/uncheck.json",
      "token_estimate": 44
    }
  ]
}