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. If the checkbox cannot be found, is hidden, 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