In this section:
The Web Accessibility Scan tool checks browser content during browser playback for compliance with web accessibility guidelines such as WCAG 2.1 and Section 508. Web accessibility scans must be chained to existing browser playback tests, which will scan the current state of the web page right after performing that browser playback action.
The Web Accessibility Scan tool tests accessibility in the browser and thus must be chained to a Browser Playback test.
To chain an accessibility scan to a browser playback test:
It is recommended that you run the Web Accessibility Scan tool at least once without any excludes. If there are violations reported and you wish to exclude them from future scans, you can update the Web Accessibility Scan tool to ignore them.
To exclude elements and rules:
The following table describes prefixes used to locate elements during the Web Accessibility Scan:
Prefix | Description |
---|---|
alt= | Searches for elements by their alt attribute value. |
class= | Searches for elements by a class associated with the element. Only one class name should be used. |
css= | Interprets the text that follows the prefix as a CSS selector. Searches for elements using that CSS selector. |
dom= | Interprets the text that follows the prefix as JavaScript that returns one or more web elements. Executes the JavaScript in the context of the page and returns the elements that the JavaScript returns. |
id= | Searches for elements by their id attribute value. |
link= | Interprets the text that follows the prefix as link text. Searches for links with that link text. |
xpath= | Interprets the text that follows the prefix as an XPath selector. Searches for elements using that XPath selector. |
document. | Interprets the entire string, including document. , as JavaScript that returns one or more element. Executes the JavaScript in the context of the page and returns the elements that the JavaScript returns. |
/ | Interprets the entire string, including / , as an XPath selector. Searches for elements using that XPath selector. |
When none of the above prefixes are found, the value is assumed to be an ID and functions as though it were prefixed with id=
.