Selenium WebDriver 4

Check and uncheck a checkbox

Easy30 pts~12 min
  • Checkboxes
  • Element state
Practice app · Workshop Registration

A registration form with text fields, radios, checkboxes, selects and validation.

Test URL
/lab/qa-automation-check-and-uncheck-a-checkbox

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Toggle checkboxes on and off and verify their final state.

Your task

  1. 1Open TEST_URL.
  2. 2Check #interest-selenium and #interest-api and assert both are selected.
  3. 3Uncheck #interest-api and assert it is no longer selected.
  4. 4Assert #interest-playwright was never selected.

Acceptance criteria

  • #interest-selenium is checked
  • #interest-api is unchecked
  • At least 3 assertions pass

Selenium WebDriver 4 · QA Automation · Forms & inputs