InvalidRole

Text

The int returned from get_accRole is not a valid role constant, ie ROLE_SYSTEM_*

Type

Error

Description

An element is reporting an invalid MSAA role. For example, the get_accRole method returns an integer value that does not map to a valid object role constant (such as ROLE_SYSTEM_LISTITEM).

This issue causes problems for people who rely on a screen-reader and keyboard for navigation because elements may be incorrectly identified to the user.

Possible causes

The element or its parent has an MSAA role set inappropriately.

IAccessible::get_accRole

Object Roles