Describes the element a user acting on an element acts on: the element itself if it takes text, or else its closest interactive ancestor, if any; and the ancestors within its root, below the document element, that have a test ID, an ID, or a role.
{Element} The element acted on.
{ElementDescriptionOptions} Options for the description.
The description.
Gets the element a user acting on an element acts on.
{Element} The element acted on.
The element itself if it takes text, or else its closest interactive ancestor, or itself.
Describes elements by facts a tool can name them by, such as their role, accessible name, labels, and attributes, without choosing among them.