Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Keyboard Accessibility Testing Tools: How to Choose

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Choosing the right keyboard accessibility testing tool helps your web team catch focus traps, missing skip links, and broken ARIA before users do. This guide walks you through evaluating tools based on your team's workflow, budget, and technical skill, so you pick something that actually gets used—not just installed.

What You'll Need

  • A list of your team's current testing tools (browser dev tools, CI pipeline, issue trackers)
  • Access to a few representative pages or components you've built (e.g., a modal, a dropdown menu, a form)
  • Time to run a 30-minute trial of each candidate tool
  • Input from at least one developer and one QA person on what they find annoying

Step-by-Step

  1. Define your testing scope. Decide whether you need to test static pages, single-page apps, or both. If your site relies heavily on JavaScript, you'll need a tool that can execute scripts and wait for dynamic content. Write down the specific WCAG success criteria you care about most—typically 2.1.1 (Keyboard), 2.1.2 (No Keyboard Trap), and 2.4.3 (Focus Order).
  2. List your candidate tools. Start with the most common options: axe DevTools (browser extension and npm package), WAVE (browser extension and API), Lighthouse (built into Chrome), and Pa11y (CLI). Also consider paid options like Deque's axe Auditor or Accessible Web's RAMP, and open-source ones like Tenon or HTML CodeSniffer. Don't forget that manual keyboard testing is always required—no tool replaces it.
  3. Check for automated keyboard checks. Open each tool on a test page and see what it flags. Good tools will catch missing href on links, elements with tabindex greater than 0, and focusable elements hidden with display:none. But note: most automated tools cannot detect focus order issues or whether a custom widget fully supports arrow-key navigation. If that's your main need, you'll need a manual testing checklist or a dedicated tool like Tabbable (a library that lists focusable elements).
  4. Test how it handles dynamic content. Load a page with a modal or a single-page app route change. See if the tool waits for content to render before scanning. For example, axe DevTools has a "Run only" option and can be configured to run after a delay. Pa11y allows you to set up a script that waits for a selector. If the tool misses dynamic content, it's not suitable for your app.
  5. Evaluate integration with your workflow. If your team uses CI, look for a tool that can run in a command line or as a Node module. Pa11y and axe-core are good choices. If you live in the browser, a DevTools extension might be enough. Check if the tool exports results in a format your issue tracker accepts (JSON, CSV, or a report URL).
  6. Check the reporting and prioritization. A tool that gives you a long list of issues without severity levels is less useful. Look for tools that categorize issues by WCAG criterion and provide code snippets. Some tools, like axe, give a clear "serious" or "critical" label. Make sure the report is understandable by your whole team, not just developers.
  7. Assess cost and licensing. Free tools like Lighthouse and WAVE are great for occasional checks, but if you need continuous monitoring or API access, you'll likely pay. Compare per-seat pricing vs. one-time fees. Open-source tools like Pa11y are free but require more setup. Consider the total cost of ownership: training time, maintenance, and false positives.
  8. Run a pilot with your team. Pick two tools and have each team member use them on a shared test page for a day. Ask them to note how long it takes to run the tool, how easy it is to interpret results, and whether they'd actually use it in their normal workflow. Collect feedback in a shared doc.
  9. Make a decision based on evidence. Score each tool against your original criteria (scope, dynamic content, integration, reporting, cost). The tool that scores highest on the criteria that matter most to your team is the one to adopt. Don't just pick the most popular one.
  10. Plan for manual testing. Whatever tool you choose, pair it with a manual keyboard testing checklist. Use browser dev tools to simulate keyboard-only navigation (Tab, Shift+Tab, Enter, Space, arrow keys). Ensure you test focus order, skip links, and that focus is visible.

Common Mistakes

  • Relying solely on automated tools. They miss many keyboard issues, especially focus order and complex ARIA patterns. You must still do manual keyboard testing.
  • Choosing a tool that doesn't handle JavaScript. If your site is a single-page app, a static HTML scanner will give false confidence.
  • Ignoring false positives. Some tools flag things that are actually fine (e.g., a hidden focusable element that is intentionally hidden with inert). Learn to triage results.
  • Not involving the whole team. If only one person uses the tool, it won't be integrated into the development process.
  • Not checking for focus visibility. A tool might tell you an element is focusable, but if the focus indicator is invisible, that's a failure of 2.4.7 that most tools can't detect.

Tips

  • Start with a free tool like Lighthouse or WAVE to get a baseline, then decide if you need more advanced features.
  • Use the axe browser extension for quick checks during development—it's fast and integrates with Chrome DevTools.
  • For CI, use axe-core or Pa11y to run automated checks on every pull request. This catches regressions early.
  • Create a custom keyboard testing script that mirrors your most common user journeys (login, checkout, search). Run it manually each release.
  • Keep a list of known issues that automated tools can't catch, and review it during manual testing.
  • Train your team on how to read the reports. A 30-minute lunch-and-learn can go a long way.

Troubleshooting

  • The tool misses issues on your dynamic content. Check if the tool has a "wait for" option or can be configured to run after a delay. For Pa11y, you can use --wait-for or a script. For axe, you can use axe.run after a timeout.
  • Too many false positives. Adjust the tool's ruleset. Most tools let you disable specific rules. For example, if you have a custom widget that is accessible but the tool doesn't recognize it, you can add a rule exception.
  • The tool is slow on large pages. Run it on specific components rather than the whole page. Use the browser extension and select an element to test only that subtree.
  • Results are hard to export. Look for a JSON export or a shareable link. Some tools have a CLI that outputs to a file. If not, consider using a screenshot tool to capture the report.
  • Team members don't use the tool. Integrate it into their existing workflow. For example, add a keyboard test step to your code review checklist, or set up a CI job that comments on pull requests with issues.

Frequently Asked Questions

Can automated tools replace manual keyboard testing?

No. Automated tools can catch some issues like missing href or non-focusable buttons, but they cannot determine if the tab order is logical or if a custom widget responds to arrow keys correctly. Manual testing is essential.

What's the difference between axe and WAVE?

axe is a rule-based engine that runs in the browser or via Node, giving detailed, code-level results. WAVE is a visual tool that shows overlays on the page, making it easier for non-developers to see where issues are. Both are free, but axe is more developer-friendly.

Is Lighthouse a good keyboard testing tool?

Lighthouse includes an accessibility audit that covers some keyboard issues, but it's not as thorough as axe or Pa11y. It's good for a quick check, but not a full audit.

How do I test focus order?

Use your keyboard: press Tab repeatedly and watch the focus indicator. Compare the order to the visual layout. Some tools like Tabbable can list the focusable elements in order, but you still need to verify it's logical.

What should I do if my tool reports a false positive?

Investigate the element. If it's truly accessible, add a rule exception or annotate the report. If it's a real issue, fix it. Don't ignore it—document why it's a false positive.

Can I test keyboard accessibility on mobile?

Keyboard testing is primarily for desktop keyboards, but mobile devices with external keyboards should also be tested. Use a Bluetooth keyboard with a mobile browser to ensure focus works.