For the complete documentation index, see llms.txt. This page is also available as Markdown.

Check Computed Role

Check the computed role on a specific element.

Check Computed Role compares the accessibility role on an Element with what you expect. Use it to catch markup changes that affect screen readers and assistive tools.

Check computed role Test Step

When to use it

  • Confirm a custom control exposes the correct role after a refactor.

  • Verify a dialog or menu reports dialog or menu semantics.

  • Pair with Check Computed Label when both role and label matter.

Configure

Basics

Field
What to set

Element

The Element to read

Comparison Type

Value

Expected role as text and/or Values

Advanced

Field
What to set

Status on fail

When should screenshots be taken?

Always or On Failures (default)

Value Standardization

Tags: check, computed, role, test, expect, assert, element, computed, accessibility

Last updated