Installation
In order to run the Accessibility Code Checker, you need to install the @siteimprove/alfa-test-utils
package that contains it, as well as one of the integration packages for the browser automation you use.
Alfa Test Utilities (version 0.76.0)
First add the Alfa Test Utilities package to your project:
- npm
- yarn
- pnpm
- bun
npm install --save-dev @siteimprove/alfa-test-utils
Frameworks for Testing
Next we need to add an integration package specific to the browser automation framework used. You can jump to the instructions for your framework and skip the rest. If you are not using any of these browser automation, see the generic documentation about scraping for other options.
Playwright (integration version 0.76.0)
Add the Alfa Playwright package to your project:
- npm
- yarn
- pnpm
- bun
npm install --save-dev @siteimprove/alfa-playwright
Puppeteer (integration version 0.76.0)
Add the Alfa Puppeteer package to your project:
- npm
- yarn
- pnpm
- bun
npm install --save-dev @siteimprove/alfa-puppeteer
Selenium (integration version 0.76.0)
Add the Alfa Selenium package to your project:
- npm
- yarn
- pnpm
- bun
npm install --save-dev @siteimprove/alfa-selenium
Cypress (integration version 0.76.0)
Add the Alfa Cypress package to your project:
- npm
- yarn
- pnpm
- bun
npm install --save-dev @siteimprove/alfa-cypress