On this page:
About Continuum for JavaScript
For developers who are familiar with Cucumber and Selenium, Access Continuum for Javascript (Cucumber/Selenium) is an easy way to embed automated accessibility testing for applications written in JavaScript.
Cucumber is a Behavior Driven Development (BDD) testing tool that is written in programming languages and plain text.
Selenium is a test automation framework that automates web testing across browsers and supports various programming languages.
By integrating with this widely used automated test framework, Continuum for Javascript (Cucumber/Selenium) developers can address accessibility concerns during the development process.
Continuum for Javascript(Cucumber/Selenium) includes:
- Access Engine.
- A sample project for Javascript (Selenium-Cucumber) to help you understand how to integrate accessibility testing into your current automated testing process.
Prerequisites
- Node
- Google Chrome
Installation
Install dependencies:
npm install
Usage
Run accessibility tests:
npm test
The URLs that are tested can be configured in the features/a11y.feature file. Simply replace the URLs in that file with the ones you'd like to test and run `npm test` in your console or IDE.
Note that if you encounter an error like the following:
SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 83
It means you need to update the chromedriver
package in your package.json file for the version of Chrome you have installed. See this package's documentation for more information.
Support
Rich API documentation for all the functionality supported out of the box with our Continuum JavaScript SDK, which this sample project uses, can be found here.
Use the request support form if you have questions, or get support from the community and the Level Access development team by posting questions on Stack Overflow with the following tags: #acccessibility, #webaccessibility and #wai-aria
Comments
0 comments
Article is closed for comments.