Accessibility Testing
What is Accessibility Testing?
Accessibility testing ensures that an application can be used by people with disabilities, verifying compliance with standards like WCAG (Web Content Accessibility Guidelines).
Key Areas Checked
- Compatibility with screen readers for visually impaired users.
- Keyboard navigation, ensuring all functionality is usable without a mouse.
- Colour contrast and text sizing for users with low vision or colour blindness.
- Support for other assistive technologies, such as voice input.
Why It Matters
Accessibility testing ensures the application is usable by the widest possible audience and is often a legal and regulatory requirement in many industries and regions.
WCAG Principles and Conformance Levels
WCAG organises its success criteria under four principles, often remembered as POUR. Every accessibility check you perform maps back to one of them.
- Perceivable: information can be seen or heard in some form, for example text alternatives for images and captions for video.
- Operable: every function works with a keyboard, users have enough time, and nothing flashes in a harmful way.
- Understandable: text is readable, behaviour is predictable, and form errors are explained.
- Robust: the markup is clean enough that assistive technologies can interpret it reliably.
Criteria are graded A, AA and AAA. Level A covers the most basic barriers, AA is the target most organisations and regulations reference, and AAA is the strictest level, usually applied only to specific content.
A Practical Test Session, Step by Step
- Run an automated scan. Tools such as axe DevTools, Lighthouse or WAVE quickly flag missing labels, low contrast and invalid ARIA. Treat the results as a starting point, since automated checks catch only a portion of real issues.
- Unplug the mouse. Navigate with Tab, Shift+Tab, Enter, Space and arrow keys. Check that the focus outline is always visible and the order makes sense.
- Use a screen reader. Try NVDA on Windows, VoiceOver on macOS and iOS, or TalkBack on Android. Listen to headings, links, buttons and form fields.
- Zoom to 200 percent and beyond. Content should reflow without hidden text or horizontal scrolling on narrow screens.
- Check media and motion. Videos need captions, and animations should respect the user's reduced-motion setting.
- Log findings against WCAG criteria so developers know exactly which rule was missed.
Typical Defects and Their Fixes
Many accessibility bugs are small markup issues. Here are three common ones, before and after:
<!-- Problem: image with no text alternative -->
<img src="chart.png">
<!-- Fix -->
<img src="chart.png" alt="Monthly sales rose steadily from April to June">
<!-- Problem: input without a label -->
<input type="email" placeholder="Email">
<!-- Fix -->
<label for="email">Email address</label>
<input type="email" id="email" name="email">
<!-- Problem: clickable div, not reachable by keyboard -->
<div onclick="save()">Save</div>
<!-- Fix: use a real button -->
<button type="button" onclick="save()">Save</button>
A placeholder is not a label: it disappears when the user starts typing and is often read inconsistently by screen readers. Native HTML elements like <button> come with keyboard support built in, which is why they beat custom widgets.
Mistakes Testers Should Avoid
- Trusting a perfect automated score. A page can pass a scan and still be unusable with a keyboard or screen reader.
- Testing only the home page. Forms, checkout, modals and error states are where users get stuck.
- Relying on colour alone. A red border for an error must also come with text explaining the problem.
- Adding ARIA everywhere. Incorrect ARIA can make things worse. Prefer semantic HTML first.
- Testing at the very end. Fixing a design system late is expensive; review designs and components early.
Short checklist: scan, keyboard pass, screen reader pass, zoom and reflow check, contrast check, media check, and every defect mapped to a WCAG criterion.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.