Checks 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: if the argument starts with # or . it is used as a CSS selector directly; otherwise the step tries an exact label match first, then falls back to id / name / value on input[type="checkbox"] elements. Checking is idempotent - if the box is already checked, the step leaves it checked. If the checkbox cannot be found, is hidden, or is disabled, the step fails with hints about what to verify.
Accepted phrasings
When I check "item"
When we check "item"
And I check "item"
Examples
When I check "Remember me"
When we check "Put site into maintenance mode"
And I check "#newsletter"
And we check ".terms-and-conditions"
In a real scenario
Scenario: Log in with the remember-me option enabled
Given I am an anonymous user
When I go to "/user/login"
And wait
Then I should see "Remember me"
When I fill in "Normal user" for "Username or email address"
And I fill in "dD.123123ddd" for "Password"
And I check "Remember me"
And I press the "Log in" button
And wait
Then I should see "Normal user"