Installation
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.77.1)
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, add an integration package specific to the browser automation framework you are using. You can focus on the instructions for your framework and skip the rest. If you are not using any of the following browser automations, see the generic documentation about scraping for other options.
Playwright (integration version 0.77.1)
Add the Alfa Playwright package to your project:
- npm
- yarn
- pnpm
- bun
npm install --save-dev @siteimprove/alfa-playwright
Puppeteer (integration version 0.77.1)
Add the Alfa Puppeteer package to your project:
- npm
- yarn
- pnpm
- bun
npm install --save-dev @siteimprove/alfa-puppeteer
Selenium (integration version 0.77.1)
Add the Alfa Selenium package to your project:
- npm
- yarn
- pnpm
- bun
npm install --save-dev @siteimprove/alfa-selenium
Cypress (integration version 0.77.1)
Add the Alfa Cypress package to your project:
- npm
- yarn
- pnpm
- bun
npm install --save-dev @siteimprove/alfa-cypress