WCAG Checker: axe-core accessibility audit for pages and sites avatar

WCAG Checker: axe-core accessibility audit for pages and sites

Pricing

from $4.50 / 1,000 page checkeds

Go to Apify Store
WCAG Checker: axe-core accessibility audit for pages and sites

WCAG Checker: axe-core accessibility audit for pages and sites

Check your pages against WCAG 2.0, 2.1 or 2.2 before a release or an accessibility review. It runs axe-core in headless Chrome and lists each failure by success criterion, with the element, its HTML and how to fix it, plus the items a person still has to review.

Pricing

from $4.50 / 1,000 page checkeds

Rating

0.0

(0)

Developer

Ed Rayyis

Ed Rayyis

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Give it a list of pages, or a site to crawl, and it tests each page against the Web Content Accessibility Guidelines (WCAG) in headless Chrome with axe-core, the open source accessibility rules engine. Pick WCAG 2.0, 2.1 or 2.2, at Level A, AA or AAA.

Every failure comes grouped under its WCAG success criterion, with the criterion number, name and level, the impact rating, the CSS selector of the element, its HTML, and what to change. Checks that axe-core could not decide on its own are listed for manual review. Each site gets a summary row, and the run can save a readable HTML report.

Use it for

  • Checking a landing page, a campaign page or a whole site for accessibility failures before it goes live.
  • Running the same audit every week on your key pages and watching the failure count move.
  • Giving a developer a list of exact elements to fix, each with its selector, its HTML and the change to make.

Sample

Input, one page with the defaults (WCAG 2.2, Level AA):

{ "startUrls": [{ "url": "https://www.w3.org/WAI/demos/bad/before/home.html" }] }

That page is the W3C's deliberately inaccessible demo site. The run returned one page row and one summary row. The page row reports 6 failed rules on 46 elements, with 2 critical and 4 serious. The criteria that failed are 1.1.1, 1.4.3, 2.4.4, 2.5.8, 3.1.1 and 4.1.2. Under 1.1.1 Non-text Content, 33 images have no alt attribute. The first one comes back as:

{
"selector": "img[src$=\"border_left_top.gif\"]",
"html": "<img src=\"./img/border_left_top.gif\" width=\"10px\" height=\"10px\">",
"howToFix": "Fix any of the following: Element does not have an alt attribute ..."
}

What it checks, and what it cannot

axe-core tests the parts of WCAG a program can test. With WCAG 2.2 Level AA selected, axe-core 4.13.0 runs 63 rules that cover 20 of the 55 success criteria at Level A and AA. The other criteria need a person: whether alt text describes the image, whether captions match the audio, whether a page works with a keyboard from start to finish.

axe-core finds on average 57% of WCAG issues automatically [1]. A page with no automated failures can still fail WCAG. Use this actor to find and track the failures a machine can see, then have a person review the rest. It does not certify conformance.

Input

  • Pages or sites (required)
  • WCAG version: 2.0, 2.1 or 2.2 (default 2.2)
  • Conformance level: A, AA or AAA (default AA). AA includes A, and AAA includes both. axe-core has three AAA rules: one for 1.4.6 Contrast (Enhanced), one for 2.4.9 Link Purpose (Link Only), and one that checks 2.2.4 Interruptions and 3.2.5 Change on Request together.
  • Crawl the site (default off). Follows links from each start page to pages on the same site, skipping files such as PDF and images.
  • Maximum pages per site (default 20) and maximum crawl depth (default 2)
  • Exclude URLs: regular expressions for crawled links to skip
  • Respect robots.txt (default on). Applies to crawled links. Pages you list are always tested.
  • Include items needing manual review (default on)
  • Include best practices (default off). Adds the 27 axe-core best practice rules, kept apart from the WCAG failures.
  • Device: desktop (1366 by 900) or mobile (iPhone 13 profile)
  • One row per failing element (default off), for a flat CSV or Excel export
  • Elements listed per rule (default 10). The full count is always given.
  • HTML report (default on)
  • Wait until, wait for selector, extra delay (default 1,000 ms), page timeout (default 30 seconds), pages at once (default 3)

Output

One dataset row per page (type: page):

  • url, finalUrl, status, title, crawlDepth, standard, device
  • violationCount: failed rules, failedElementCount: failing elements
  • criteriaFailed: the success criterion numbers that failed, such as 1.4.3
  • impactCounts: failed rules by axe-core impact (critical, serious, moderate, minor)
  • criteria: one entry per failed success criterion with criterion, name, level, a link to the W3C Understanding page, and its rules. Each rule has ruleId, impact, help, helpUrl, elementCount and elements, and each element has selector, html and howToFix.
  • manualReview: checks axe-core could not decide, with the criteria they relate to and the elements involved
  • bestPractice: best practice failures, when that option is on
  • passedRuleCount, axeVersion, checkedAt

One summary row per site (type: summary): pages tested, pages with failures, pages not tested, failing elements, impact counts, the criteria that failed, the ten criteria failing on the most pages, the manual review count and the link to the HTML report.

With one row per failing element on, each listed element also gets a row (type: issue) with the page, criterion, level, impact, issue, selector, HTML and how to fix.

A page that cannot be tested gets ok: false and an error: an address that is not a web address, a host that does not resolve, a page that answers with an HTTP error such as 404, or a file that is not HTML. The run carries on with the next page.

The HTML report is saved as report.html in the run's key value store and opens in any browser. The dataset has three views: Pages, Site summary, and Issues.

Pricing

Pay per event: one event per page tested. Pages that cannot be tested are not charged. The run stops when it reaches the maximum charge you set.

Scope and conduct

Only public pages are opened. The actor does not log in, fill in forms or collect personal data. Each page opens in a fresh browser context with no cookies carried over. No proxies are used. Test sites you are allowed to test.

axe-core 4.13.0 is included unchanged under the Mozilla Public License 2.0 [2], and its license file ships with the actor.

From the same account, for checking a website:

Support

Questions and problems: the Issues tab on this page.

References

  1. dequelabs/axe-core | README | github.com. https://github.com/dequelabs/axe-core

  2. dequelabs/axe-core | LICENSE, Mozilla Public License 2.0 | github.com. https://github.com/dequelabs/axe-core/blob/develop/LICENSE