zshot/cliDownload

Audit accessibility with a script

LicensePro

Give the navigator the axe-core audit script, run it on the Zemu storefront, and save its report to audit.txt. The navigator in this example uses Anthropic with an API key you must provide.

Run locally
zshot -f audit.txt \
  -t goal \
  --navigate "Run the accessibility audit and report each violation with its impact and how many elements fail" \
  --navigator-script "axe accessibility audit, JSON violations for this page=https://zshot-cli.com/scripts/axe-audit.js" \
  --navigator-type "anthropic://YOUR_API_KEY@" \
  "https://zshot-cli.com/example_assets/zemu/"
Expected output
The axe accessibility audit (axe 4.14.1) ran on this page, why-zemu.html. It found **2 violations**, and 42 rules passed. 1. **color-contrast** (Elements must meet minimum color contrast ratio thresholds): impact **serious**, **14 failing elements** (5 listed plus 9 more). - The cart link label is white on #ff5a1f, a ratio of 3.11:1. - The category nav links (All, Home, Health, Tech) are white on #e0430c, a ratio of 4.21:1. - The required ratio is 4.5:1. 2. **region** (All page content should be contained by landmarks): impact **moderate**, **1 failing element** (`.demobar`). Axe also flagged color-contrast as **incomplete** (needs manual review) on 13 more elements, rated serious. Mostly it could not work out the background colour because of gradients, for example `.demobar`, `#shield-score` and the sale modal heading.