Playwright

Check and uncheck inputs

Easy30 pts
  • Checkboxes
  • Radio buttons
  • toBeChecked
Practice app · Workshop Registration

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

Test URL
/lab/playwright-check-and-uncheck-inputs

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

Objective

Manipulate checkboxes and radio buttons and verify their checked states.

Your Task

  1. 1Navigate to the preferences form at TEST_URL.
  2. 2Select the Playwright interest checkbox (#interest-playwright) and assert that it is checked.
  3. 3Select the Pro plan radio button (input[value='pro']) and assert that it is checked.
  4. 4Deselect the Playwright interest checkbox (#interest-playwright) and assert that it is no longer checked.

Validation Checks

  • Preferences form is loaded at TEST_URL
  • Interest checkbox (#interest-playwright) is checked and verified
  • Pro plan radio button (input[value='pro']) is checked and verified
  • Interest checkbox (#interest-playwright) is unchecked and verified
  • At least 2 assertions pass

Playwright · Playwright Practice Track · Actions & inputs