Playwright

Test keyboard-only navigation

Medium70 pts
  • Keyboard Navigation
  • WCAG
  • Tab Traversal
Practice app · Workshop Registration

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

Test URL
/lab/playwright-test-keyboard-only-navigation

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

Objective

Navigate and interact with form controls using keyboard actions exclusively.

Your Task

  1. 1Navigate to the form scenario page.
  2. 2Traverse interactive form elements using Tab key presses.
  3. 3Toggle the terms checkbox #terms using the Space key.
  4. 4Assert that the terms checkbox #terms is checked.

Validation Checks

  • Uses keyboard navigation to interact with elements
  • #terms checkbox is checked
  • At least 1 assertion passes

Playwright · Playwright Practice Track · Visual & accessibility