How to Automate Accessibility Checks for Web Applications
Accessibility checks work best when they form part of everyday delivery rather than a once-a-year audit. Automated tools can inspect markup, ARIA attributes, colour contrast, form labels and many keyboard interactions, then report failures while a change is still small. This gives developers fast feedback, gives release managers evidence and reduces the number of regressions reaching production.
Web applications add complications that a static page cannot reveal: content changes after JavaScript runs, focus moves between components, and authentication hides important routes. A practical program therefore combines automated scanning with browser-level tests and manual review by people who use assistive technology. For Australian delivery teams, that combination also supports procurement expectations and the accessibility obligations attached to government services.
Establish the target and release rules
Begin by defining what the team will standardise against. WCAG 2.2 Level AA is a common target for modern web experiences, but the chosen level should reflect user needs, contractual requirements and the risk of each service. Translate it into a small set of release rules for critical journeys, such as blocking a new serious keyboard failure while allowing an agreed legacy issue to remain visible.
Australian context makes that evidence especially relevant. Commonwealth agencies align public digital services with the Australian Government Digital Service Standard and WCAG, while state and local services face similar procurement and assurance expectations. Where an internal standard is still unclear, an accessibility test strategy can connect requirements, tooling, ownership and measurable outcomes.
Separate what automation can decide from what needs specialist judgement. Page scans can detect many structural problems, yet they cannot establish whether alternative text conveys the right meaning, instructions are understandable or announcements work with a particular screen reader. Record those limitations in the definition of done and route them to manual review rather than treating a green scan as full conformance.
Build a layered test suite
Build the suite in layers. Static analysis can catch malformed HTML, missing accessible names and invalid ARIA before code is bundled. Component tests can verify that a button, dialog or field exposes the expected role, name, state and keyboard behaviour. These fast checks belong near the developer’s commit, where a short feedback loop makes them inexpensive to fix.
At the browser layer, combine a DOM-based rules engine such as axe-core with an end-to-end driver such as Playwright or Cypress. Inject axe into rendered pages, wait for the application to reach a known state, run the scan and assert against specific rule violations. Lighthouse CI and dedicated scanners can add broader coverage, but a clean score should not replace explicit assertions about the behaviours your service promises.
Automated tools inspect only the states they are given. A signed-out landing page may pass while a modal, empty results view or validation error fails. Include authenticated routes, asynchronous content and responsive layouts in test data, and confirm that the scanner evaluates the live DOM rather than server-rendered source. Keep exceptions narrow: record a rule, affected component, reason and expiry date so a suppression cannot conceal an expanding problem.
Model critical user journeys
Select journeys by business impact and user risk, then express each one as a sequence of accessible actions. A purchase might cover product search, filtering, quantity changes, checkout and error recovery; a customer portal might cover sign-in, a form, document download and logout. Assertions should check visible labels, heading structure, focus order, keyboard operability and useful error messages, not merely the presence of CSS selectors.
Australian scenarios need realistic content and formatting. For an Australian retailer, fixtures might include GST-inclusive totals, prices in AUD, dates written as dd/mm/yyyy and state or territory addresses. Check that punctuation, abbreviations and currency are announced clearly and that error summaries direct keyboard users to the failed field. These checks reveal barriers that generic English sample data often misses.
Build resilient scenarios around user-visible roles and names, such as getByRole() and getByLabel(), instead of brittle CSS paths. Give dynamic regions stable accessible names, manage focus after dialogs close, and verify that a visible focus indicator survives theme changes. Avoid arbitrary sleeps: wait for a specific content or accessibility condition, then make one assertion per rule so a failure points to a precise remediation.
Integrate checks into CI/CD
Wire the layers into pull requests, the main branch and scheduled runs. A practical pipeline can execute linting and component checks on every pull request, a small browser suite before merge, critical end-to-end checks before deployment, and a wider regression scan nightly. Keep pull-request feedback fast, publish machine-readable results and fail only on agreed accessibility gates rather than burying an important warning in a long log.
Teams working in Microsoft-based environments can apply the same model in Azure DevOps. A related example of REST API performance testing uses k6 and Azure Pipelines to show how another quality check can sit within the same release discipline. Each check should run at a suitable stage, return an objective result and inform the deployment decision while retaining the context needed to interpret its findings.
Use isolated test accounts and representative data, and avoid invasive scanning against production. Post-deployment checks should be read-only, narrowly scoped and safe for dynamic pages. Because users in regional and rural Australia may access services over variable connections, combine accessibility findings with performance signals: an element that is technically labelled can still create a barrier if it is slow, unstable or impossible to reach.
Report meaningful accessibility evidence
Report evidence that teams can act on. A useful dashboard can show scan coverage by route and WCAG criterion, newly introduced violations, unresolved issues by severity, time to remediation and defects found by users or manual audits. Keep automated and manual findings visible in the same backlog, because a keyboard problem discovered during usability testing may not map neatly to an automated rule.
Choose gates that reward improvement without freezing delivery. Blocking every pre-existing warning may push teams to suppress checks, while allowing every new issue creates risk. A common approach is to prevent new critical or serious regressions, require an owner and due date for accepted exceptions, and review the remaining baseline regularly. Record false positives separately from genuine defects so tool quality can be improved.
Standard reporting also helps distributed teams. Delivery groups spread across Sydney, Melbourne and Brisbane often share services, contractors and release calendars, yet inconsistent severity definitions can create disputes. Agree on vocabulary, evidence requirements and escalation paths with product, design, engineering and accessibility specialists. The same release artefact should carry the scan results, approved exceptions and links to tracked issues.
Maintain trust and coverage
Treat the accessibility test suite as a maintained product with owners, reviews and a maintenance budget. Pin tool versions, update them on a controlled cadence, and test against the browsers and assistive technologies used by the audience. When a component library changes its markup or ARIA implementation, rerun focused scenarios and revise assertions. Keep WCAG mappings current, and confirm that a scanner upgrade has not silently changed its rule set or severities.
Preserve space for human judgement. Automated checks cannot reliably judge whether alt text is meaningful, instructions use plain language, a cognitive task is manageable or a screen-reader sequence makes sense. Periodically pair keyboard-only testing with VoiceOver on macOS, NVDA on Windows and other combinations justified by user research. Include people with disability in research and usability sessions, subject to appropriate consent and support.
Roll out incrementally. Begin with the shared component library and one high-value journey, fix systemic problems, then extend coverage to other routes and supported devices. Measure the effect on escaped defects and remediation time, and publish which checks remain manual. nFocus Software Testing can help teams assess current coverage, select tools for their delivery environment and establish the governance needed for sustainable continuous accessibility testing.
Start by selecting one critical customer journey, adding semantic and keyboard assertions to the browser suite, and scheduling a full scan for authentication and dynamic states. Give a named team ownership of results, accepted exceptions and manual follow-up so the checks improve rather than become ignored.
Contact nFocus Software Testing to book an accessibility testing assessment, identify priority gaps, build a practical automation roadmap and embed measurable accessibility evidence into your release process.