# Test with axe, WAVE or Lighthouse

- Check 11.15 · Semantic HTML and accessibility · Important
- Source: https://checklist-seo-geo.com/en/semantic-html-accessibility/test-axe-wave-lighthouse
- Test accessibility with Lighthouse, axe DevTools and WAVE, read the results, sort the fixes and automate checks with axe-core, Pa11y CI or LHCI.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/semantic-html-accessibility/test-axe-wave-lighthouse.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Lighthouse, axe DevTools and WAVE are three free tools that automatically detect some of the accessibility defects: images without alt text, fields without labels, insufficient contrast, buttons without a name, invalid ARIA, missing language. The task is to run them on every template of the site, fix the errors they report and automate these checks so that the errors do not come back. Once it is done, the main templates show no automatically detectable errors, and a check blocks regressions before going live.

## Why it matters

The most common defects are also the easiest to detect. Of the home pages analyzed in 2026 by the [WebAIM Million](https://webaim.org/projects/million/) study, 95.9% had automatically detectable WCAG errors. The most frequent: low-contrast text (83.9% of pages), images without alt text (53.1%), fields without labels (51%), empty links (46.3%), empty buttons (30.6%), missing document language (13.5%).

These errors also affect bots and AI agents. An image without `alt`, a link without text, a button without a name or a page without a `lang` attribute deprive search engines, generative engines and browsing agents of information they use.

Automated tests do, however, have a clear limit. Deque, the publisher of axe-core, estimates that 57% of the issues found in its clients' first audits could be detected automatically. The rest requires a human: relevance of alt text, reading order, keyboard navigation, understandability of an error message. A score of 100 is not proof of conformance.

## What it improves

- **Accessibility**: quick fixes for the most widespread errors, often at template level, and therefore on every page at once.
- **Ongoing quality**: regressions are blocked before going live when the tests run in the deployment pipeline.
- **Readability for bots and AI agents**: alt text, link and button names, declared language. An indirect effect.
- **Lighthouse Accessibility score**: it improves, but it is only an indicator. It is not a ranking factor.

## How to check

Open the home page in Chrome, then the developer tools, Lighthouse panel: check only “Accessibility”, choose “Mobile” and run the analysis. Do the same on a product page or an article, a category page and the contact page. PageSpeed Insights shows the same score without installing anything.

Compliant result: no errors in the listed audits, on every template, and a manual review of the items Lighthouse lists under “Additional items to manually check”. A score below 90 on a template almost always signals an error repeated on every page that uses it.

## How to implement

### Step 1 — Choose the pages to test

Test by template, not page by page: home, category, product or service page, article, search, contact, cart, checkout steps, account, 404 page. Also test states: mobile menu open, modal window displayed, form submitted with errors, consent banner visible. A tool only analyzes what is displayed at the time of the test.

Tool comparison:

| Tool | Engine | Form | Strengths | Limits |
| --- | --- | --- | --- | --- |
| Lighthouse | axe-core (subset) | Chrome DevTools, PageSpeed Insights, command line | Already installed, score tracked over time | Weighted score, fewer rules than axe |
| axe DevTools | axe-core | Chrome, Firefox, Edge extension | Few false positives, explanation and fix for each rule | Guided tests limited to the paid version |
| WAVE | WebAIM engine | Chrome, Firefox, Edge extension | Annotations directly on the page, no-styles view, structure | More alerts to sort through |
| Accessibility Insights for Web | Automated rules and assisted tests | Chrome and Edge extension | Visualized tab order, guided level AA assessment | No Firefox |

Use at least two: their rules overlap without being identical.

### With Lighthouse

**In Chrome**: developer tools, Lighthouse panel, “Accessibility” category. The report lists the failed audits, the elements concerned (click to select them in the Elements panel), and a list of “Additional items to manually check”. The score is a weighted average: each audit is worth 0 or 1, with a weight of 3, 7 or 10 depending on the impact assigned by axe-core. A single button without a name on the page makes the whole “Buttons have an accessible name” audit fail.

**From the command line**, to keep a report or test several pages:

```bash
npx lighthouse https://example.com/ --only-categories=accessibility --output=html --output=json --output-path=./rapports/accueil --chrome-flags="--headless=new"
```

The score can also be read in [PageSpeed Insights](https://checklist-seo-geo.com/en/performance-core-web-vitals/analyze-pagespeed-insights-lighthouse), which shows it for mobile and desktop.

### With axe DevTools

Install the free extension for Chrome, Firefox or Edge. In the developer tools, “axe DevTools” tab, run a full page scan. Each issue states the rule (`image-alt`, `label`, `color-contrast`, `link-name`, `button-name`, `html-has-lang`…), its impact (critical, serious, moderate, minor), the element concerned and the expected fix. “Needs review” items call for your judgment: contrast over a background image, for example.

Intelligent Guided Tests, which walk you through manual checks, are part of the paid version.

To test a list of URLs without an open browser, the `@axe-core/cli` package uses the same engine:

```bash
npm install -g @axe-core/cli
axe https://example.com/,https://example.com/contact --tags wcag2a,wcag2aa,wcag21a,wcag21aa,wcag22aa --save rapport-axe.json --exit
```

`--exit` returns an error code if a rule fails, which is useful in a script. The tool drives Chrome through ChromeDriver: if you get a version error, install the driver that matches your Chrome as its documentation explains.

### With WAVE

Install the WAVE extension for Chrome, Firefox or Edge. It runs entirely in the browser, without sending the page to WebAIM's servers: you can test a staging site or a page behind a login. Click the icon: WAVE annotates the page.

- **Red icons**: errors to fix (image without an alternative, field without a label, empty link), and contrast errors.
- **Yellow icons**: alerts to review. Not all of them are defects: a skipped heading, very long alt text, a redundant link.
- **Green icons**: accessibility features present, still to be checked (an `alt` exists, but is it relevant?).
- **Styles option**: turning it off shows the page linearized in code order, which is useful to [check DOM reading order](https://checklist-seo-geo.com/en/semantic-html-accessibility/check-dom-reading-order).

The wave.webaim.org site also analyzes a public URL without the extension; a paid API exists for high-volume testing.

### With Accessibility Insights for Web

A Microsoft extension for Chrome and Edge. FastPass mode combines automated checks with a visualization of tab stops on the page, in two steps. Assessment mode guides a full evaluation against WCAG 2.1 level AA, with assisted manual tests: a good basis to [check applicable WCAG guidelines](https://checklist-seo-geo.com/en/semantic-html-accessibility/check-applicable-wcag-guidelines).

### In continuous integration

Automate the checks so that every deployment is tested. Three options, detailed in [integrate accessibility tests into CI/CD](https://checklist-seo-geo.com/en/automation-quality-control/integrate-seo-performance-accessibility-tests-into-ci-cd):

**Pa11y CI**, on a list of URLs or a sitemap. A `.pa11yci` file at the root of the project:

```json
{
  "defaults": {
    "standard": "WCAG2AA",
    "runners": ["axe", "htmlcs"],
    "timeout": 30000
  },
  "urls": [
    "https://staging.example.com/",
    "https://staging.example.com/contact",
    "https://staging.example.com/produits/chaise-chene"
  ]
}
```

```bash
npm install -g pa11y-ci
pa11y-ci
pa11y-ci --sitemap https://staging.example.com/sitemap.xml
```

Pa11y CI returns exit code 2 if a page fails, which makes the CI step fail.

**axe-core in Playwright tests**, to test states as well (menu open, form errors):

```ts
import { test, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';

test('contact form has no detectable accessibility errors', async ({ page }) => {
  await page.goto('https://staging.example.com/contact');
  await page.getByRole('button', { name: 'Send message' }).click();

  const resultats = await new AxeBuilder({ page })
    .withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'wcag22aa'])
    .analyze();

  expect(resultats.violations).toEqual([]);
});
```

Installation: `npm install -D @playwright/test @axe-core/playwright`.

**Lighthouse CI**, for a score threshold. In `lighthouserc.json`:

```json
{
  "ci": {
    "collect": {
      "url": ["https://staging.example.com/", "https://staging.example.com/contact"],
      "numberOfRuns": 1
    },
    "assert": {
      "assertions": {
        "categories:accessibility": ["error", { "minScore": 0.95 }]
      }
    }
  }
}
```

Then run `npx @lhci/cli autorun` in the CI. Some SEO crawlers, including recent versions of Screaming Frog, can also apply axe-core rules to an entire site in JavaScript rendering mode: refer to their documentation.

### Step 2 — Sort and fix

Fix what is in the templates first, then whatever blocks a journey, then the rest. Mapping of the most frequent errors:

| axe rule or WAVE error | Fix | Guide |
| --- | --- | --- |
| `image-alt`, “Missing alternative text” | Descriptive `alt`, or `alt=""` if decorative | [ALT text for informative images](https://checklist-seo-geo.com/en/semantic-html-accessibility/provide-alt-text-informative-images) |
| `label`, “Missing form label” | `<label for>` associated with each field | [form labels](https://checklist-seo-geo.com/en/semantic-html-accessibility/check-form-labels) |
| `color-contrast`, “Very low contrast” | 4.5:1 ratio for body text | [check color contrast](https://checklist-seo-geo.com/en/semantic-html-accessibility/check-color-contrast) |
| `link-name`, “Empty link” | Visible text or `aria-label` on the icon link | [buttons and links](https://checklist-seo-geo.com/en/semantic-html-accessibility/distinguish-action-buttons-from-navigation-links) |
| `button-name`, “Empty button” | Text or `aria-label` on the button | [buttons and links](https://checklist-seo-geo.com/en/semantic-html-accessibility/distinguish-action-buttons-from-navigation-links) |
| `html-has-lang`, “Language missing” | `<html lang="fr">` | [set html lang](https://checklist-seo-geo.com/en/development-accessibility-language/set-html-lang-each-page) |
| `aria-*`, “Broken ARIA” | Fix or remove the ARIA attribute | [use ARIA when necessary](https://checklist-seo-geo.com/en/semantic-html-accessibility/use-aria-when-necessary) |
| `frame-title`, `video-caption` | `title` on the iframe, captions | [text alternatives for media](https://checklist-seo-geo.com/en/semantic-html-accessibility/provide-text-alternatives-media) |
| `heading-order`, “Skipped heading level” | Heading levels without gaps | [structure H2/H3 headings](https://checklist-seo-geo.com/en/page-seo-metadata/structure-h2-h3-headings) |

After fixing, run the tool again on the same page, then on another page of the same template. Record the result in your tracking: date, template, number of errors per rule.

### Step 3 — Complete with manual tests

Set aside half an hour per template for what no tool can judge: [test keyboard navigation](https://checklist-seo-geo.com/en/semantic-html-accessibility/test-keyboard-navigation), listen to the page with NVDA or VoiceOver, check that alt text and labels make sense, zoom to 200%.

## Common mistakes

- **Aiming for 100 and stopping there**: a page scoring 100 can be unusable from the keyboard or have absurd alt text.
- **Testing a single page**: errors are often in the checkout funnel, the forms or pages generated by a plugin.
- **Testing only the initial state**: the mobile menu, modal windows and error messages are only analyzed if they are displayed.
- **Fixing for the tool**: adding `alt="image"` or any old `aria-label` makes the error disappear without solving anything.
- **Ignoring WAVE alerts and axe's “needs review” items**: they contain some of the real issues.
- **Comparing scores from different tools**: each tool has its own rules; always track the same tool on the same pages.
- **Forgetting third-party content**: consent banner, chat, review widget. They are part of the page and of its errors.

## Frequently asked questions

### Which tool should you choose between axe, WAVE and Lighthouse?

Use at least two, because their rules overlap without being identical. Lighthouse is already in Chrome and gives a score to track over time. axe DevTools produces few false positives and details the fix for each error. WAVE annotates the page directly and shows the structure and code order. For automation, axe-core plugs into Playwright, Pa11y CI or Lighthouse CI.

### Does a Lighthouse accessibility score of 100 mean the site is accessible?

No, a Lighthouse accessibility score of 100 only means that none of the automated audits failed on that page, in that state. Deque estimates that about 57% of the issues found in audits can be detected automatically. The rest, such as the relevance of alt text, reading order or keyboard use, requires manual testing and a screen reader.

### Does the Lighthouse accessibility score affect SEO?

The Lighthouse accessibility score is not a ranking factor documented by Google. It does, however, measure points that overlap with how readable a page is for bots: image alt text, named links and buttons, declared language, ordered headings. Fixing these errors helps search engines, generative engines and AI agents understand the page, with no measurable direct effect on positions.

### Can you test the accessibility of a password-protected page?

Yes. The WAVE, axe DevTools and Accessibility Insights extensions analyze the page displayed in your browser once you are logged in; WAVE states that its extension sends nothing to its servers. For automated tests, a Playwright script can log in with a test account and then run axe-core on each protected page, which makes it possible to cover the customer area and the checkout funnel.

## Resources

- [Chrome for Developers: Lighthouse accessibility scoring](https://developer.chrome.com/docs/lighthouse/accessibility/scoring)
- [Deque: axe-core and its rule descriptions](https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md)
- [Deque: axe-core for Playwright and the command line](https://github.com/dequelabs/axe-core-npm)
- [WebAIM: WAVE extension](https://wave.webaim.org/extension/)
- [Microsoft: Accessibility Insights for Web](https://accessibilityinsights.io/docs/web/overview/)
- [Pa11y CI](https://github.com/pa11y/pa11y-ci)
- [Playwright: Accessibility testing](https://playwright.dev/docs/accessibility-testing)
- [Deque: automated accessibility testing coverage report](https://www.deque.com/automated-accessibility-coverage-report/)

Next steps: [check applicable WCAG guidelines](https://checklist-seo-geo.com/en/semantic-html-accessibility/check-applicable-wcag-guidelines) and [integrate SEO, performance and accessibility tests into CI/CD](https://checklist-seo-geo.com/en/automation-quality-control/integrate-seo-performance-accessibility-tests-into-ci-cd).
