Element Accessibility Validation

Accessible web pages are web pages that are designed in a way that people with disabilities or impairments can use them. Most US and EU organizations require accessibility compliance.

Using the Validate element accessibility step, you can check if a specific element on your web page could have been made accessible, but was not. The accessibility checks are based on rules, which are listed here: https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md.

πŸ“˜

This is a pro feature only open to projects on our professional plan. To learn more about our professional plan, click here.

πŸ“˜

The Validate element accessibility step feature is only available when using the Chrome browser.

Adding a Validate element accessibility step

πŸ“˜

Steps created before Jan 2022 are not shared. To make them shared, please record them again.

To add a Validate element accessibility step:

  1. Hover over the (arrow symbol) where you want to add the step.
38533853

The action options are displayed.

250250
  1. Click on the Toggle Breakpoint button.
300300
  1. Click on the Run test button to run the test until the breakpoint.
38533853
  1. Hover over the (arrow symbol) again and click on the β€œM” (Testim predefined steps).
    The Predefined steps menu opens.
300300

5.Click on Validations.
The Validations menu expands.

300300
  1. Scroll down through the menu and select Validate element accessibility.

πŸ“˜

Alternatively, you can use the search box at the top of the menu to search for Validate element accessibility.

  1. In the AUT window, identify the relevant element for which you wish to validate its accessibility, and click on it to select it.
    A Validate element accessibility step is added in the Editor.
38533853
  1. Hover over the newly created step, and click on the Show Properties () icon.
38533853

The Properties panel opens on the right-hand side.

544544
  1. Fill in the properties as described below.
  • Description – The description of the step. (Default = Accessibility validation)
  • Fail test from impact level – The minimal impact level that will fail the test. Options are: Critical, Serious, Moderate, and Minor. (Default = Minor)
  • Run only specific tags – Click in this field and choose the protocols you wish to test from the dropdown options available. See table below. By default all tags are selected.
  • Exclude specific rule IDs – If you wish to exclude specific rule IDs, select them from the list. In addition if you wish to only check specific rule IDs, you can select all and then un-select the ones you would like to test.
  • When this step fails – Specify what to do if the step fails.
  • When to run step – Specify conditions for when to run the step. For more info, see Conditions.
  • Override timeout – Allows you to override the default time lapse setting which causes Testim to register a fail for a test step, and specify a different time lapse value (in milliseconds).
  • Disable auto-scroll – Disables auto-scrolling to elements that exist, but are outside of the viewport.
19201920
  1. Click on the Toggle Breakpoint button after the Validation step to remove the breakpoint.
    When the test is run, the accessibility level of the selected element will be checked against the parameters you set. If accessibility violations are found and the step fails, you can view the accessibility report to see detailed results.

Viewing the element accessibility results

After a test with a Validate element accessibility step is run, if accessibility violations are found, a Step Failed: Accessibility violations were found error message is shown, and you can view detailed accessibility violation results.

To view the element accessibility results:

  1. Hover over the failed Validate element accessibility step, and click on the Show Properties () icon.
38533853

The Properties panel opens on the right-hand side.

  1. In the Properties panel, click the Check here for more details link.
200200

πŸ“˜

Alternatively, in the error panel, you can click on the Accessibility report link.

38533853

The Accessibility Result window is shown (based on the impact level you chose previously), displaying a list of accessibility issues, the number of occurrences that were found, and their impact levels.

400400

If you would like to show the accessibility issues found based on all of the impact levels, click the All impact levels toggle.

400400
  1. If you would like to download the results as a CSV file, click the download icon. (The CSV file includes the results of all of the accessibility tests, including those that passed.)
400400
  1. Click the down arrow next to any of the results to show the following detailed information: Description, How To Fix The Problem, and Element CSS Selector.
400400
  1. If more than one occurrence of an accessibility issue was found, click the arrows in the Element CSS Selector section to show the different instances of the issue.
400400

Rules Descriptions

Testim uses the following library to check the element accessibility level: https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md. Each rule has an associated impact level (e.g. Critical, Serious, Moderate, or Minor) and associated tags. When configuring the accessibility check, you can limit the check to certain tags and/or impact levels.