Takes an accessibility snapshot of an element and its descendants.
{Element} The element to take the snapshot of, which is included if it has a role.
{AriaSnapshotOptions} Options for the snapshot. If omitted, nodes get refs without a prefix.
The snapshot.
Takes accessibility snapshots: trees of the elements in the accessibility tree, each with its role, accessible name, and states, and the text between them. Elements without a role, or with a generic, none, or presentation role, are left out, with their content moved up to their parent. Hidden elements are left out with their content.