When I uncheck "checkbox"

Unchecks a checkbox on the current page. The quoted argument identifies the checkbox and can be its visible label text, a CSS shorthand like #newsletter (id) or .terms-and-conditions (class), or a bare token that is matched against the checkbox's id, name, or value attribute.

Lookup order mirrors the check step: a # or . prefix is treated as a CSS selector; otherwise an exact label match is tried first, then id / name / value on input[type="checkbox"] elements. Unchecking is idempotent - a box that is already unchecked stays unchecked and the step still passes. A box that part of its own label covers (the slider of a toggle switch), or that is hidden while its label draws it, is unchecked by clicking that label, as a person does, and must be unchecked within 5 seconds (since 2.0.13). If the checkbox cannot be found, is hidden with no label to click, or is disabled, the step fails with hints about what to verify.

Accepted phrasings

When I uncheck "item"
When we uncheck "item"
And I uncheck "item"

Examples

When I uncheck "Remember me"
When we uncheck "Put site into maintenance mode"
And I uncheck "#newsletter"
And we uncheck ".terms-and-conditions"

In a real scenario

Scenario: Disable the welcome message option in site settings
  Given I am logged in as an administrator
   When I go to "/admin/site-settings"
    And wait
    And I uncheck "Allow site to show welcome message"
    And I press the "Save configuration" button
    And wait
   Then I should see "The configuration options have been saved."

Related steps

Back to Form Steps