The Element Filtering feature of Access Assistant allows organizations to specify elements within an asset that can be ignored when testing modules. A common use case would be to capture components that appear on all or most screens of a website, such as headers, footers and navigation elements, as a module using the "Node Capture" feature. When testing all pages of the site, these elements could be ignored, so violations on those elements won't be duplicated in every module of the report.
Creating Element Filters
Element Filters can be created and saved at the Asset level. This allows the element filter to be used across all reports for a given asset. To create an element filter:
- Navigate to the Asset and select the Element Filters button.
- The subsequent page will display all filters that already exist for the asset. Select the "New Filter" button to create a new Element Filter for the asset.
- On the New Filter form complete the following fields:
- Name: Enter a name for the filter, e.g., "Site Header"
- Permissions: Select whether the filter should be available for only you to use or for anyone with testing permissions for the asset.
- CSS Selector: Enter the CSS Selector for the element that should be filterable when testing the asset.
- Save to complete creation of the filter.
Filtering Elements When Testing
When capturing a module, Element Filters can be selected for the associated elements to be ignored when the module is tested. Read more about element filtering when capturing modules in the "Capturing Modules with Access Assistant" article.