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 on our platform with axe™.

why should you care about accessibility testing?

Check out the Deque Accessibility Guide for further information.

What You'll Need​

Sauce Labs UI​

Accessibility Example in Sauce UI

The full page report gives an easy to consume overview of all the acessibility results with stats and extended details:

Full Page Accessibility Example in Sauce UI

Language Specific Examples​

The following shows how to use the Java Deque Axe Selenium library directly:RequirementsAdd the following 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>
UsageThis method populates results on the Sauce Labs Accessibility tab:
new AxeBuilder().analyze(driver);
Example Code
Selenium Accessibility Test
loading...

Additional Resources​