Testing Forms with Assistive Technology
You'll learn how to test your forms using screen readers and keyboard-only navigation to catch accessibility issues before they affect real users.
Why Test with Assistive Technology?
Just because your form looks accessible doesn't mean it is accessible. Many users rely on assistive technology like screen readers (JAWS, NVDA, VoiceOver) or navigate entirely by keyboard. Testing with these tools reveals whether your carefully crafted labels, error messages, and validation actually work in practice.
Think of it like testing a website on different browsers—except here, you're testing different ways people perceive and interact with your interface.
Screen Reader Testing
Screen readers announce form elements based on their semantic markup. When testing:
- Navigate to each input using the Tab key
- Listen to what the screen reader announces: label, field type, current value, required status, validation state
- Trigger validation errors and confirm they're announced immediately
- Check that
aria-describedbyconnects help text and errors properly - Verify error summaries are announced when forms submit unsuccessfully
Keyboard-Only Navigation Testing
Unplug your mouse and try completing the entire form:
- Can you reach every interactive element with Tab and Shift+Tab?
- Are focus indicators visible on every field?
- Can you activate all buttons and controls with Enter or Space?
- Does focus move logically through the form?
- After validation errors appear, does focus move appropriately?
- Can you close modals or dialogs with Escape?
What You're Actually Testing
You're verifying that all the work you did—adding labels, setCustomValidity(), aria-describedby, focus management, live regions—actually creates a usable experience. Screen reader users should understand what each field is, when errors occur, and how to fix them without seeing the screen.
Key Takeaway: Testing with screen readers and keyboard navigation is the only way to verify your forms are truly accessible—automated tools can't catch everything users will experience.