Skip to main content

Deque axe™ Integration

Deque's axe™ is one of the world's leading digital accessibility toolkits. The axe-core library provided by Deque allows you to inject functionality into your tests in order to scan content and return an a11y score.

Below is a guide to set up the Sauce Labs integration. This integration allows you to run your accessibility tests, using axe™, on our platform.

why should you care about accessibility testing?

Check out the Deque Accessibility Guide for further information.

What You'll Need#

Sauce Labs UI#

Sauce Labs will display the accessibility results in our UI as a tab in the Job itself:

Accessibility Example in Sauce UI

Language Specific Examples#

We highly recommend using the Java Sauce Bindings. Check out the description and examples for the new Accessibility functionality.

The following is information on how to use the Java Deque Axe Selenium library directly:

Requirements

Add this to your pom.xml:

<!-- https://mvnrepository.com/artifact/com.deque.html.axe-core/selenium --><dependency>  <groupId>com.deque.html.axe-core</groupId>  <artifactId>selenium</artifactId>  <version>4.2.2</version></dependency>

Usage

This method populates results on the Sauce Labs Accessibility tab:

new AxeBuilder().analyze(driver);

Example Code

Selenium Accessibility Test
loading...

Additional Resources#