Skip to main content
Lowercase ARIA name for a role — matches the form used in snapshot output and accepted by AccessibilityTree.find(). AriaRole is exposed to JS as a numeric enum, so the usual TypeScript reverse-mapping trick (AriaRole[role]) does not work; use this function instead.

Parameters

AriaRole
required

Returns

string