Skip to content

TextMatchOptions

Namespace: E2E

public class TextMatchOptions

Options shared by the text-matching queries.

Inheritance: object

Derived: RoleOptions

View source

public bool Exact { get; init; }

Exact match, the default. false is a case-insensitive substring. A Regex ignores it.

Value: bool

View source

public bool Visible { get; init; }

Drops nodes the platform reports as hidden before the exactly-one rule, so a visible node with a hidden twin still resolves. On the web, hidden is what renders: display: none, a visibility other than visible, and content under content-visibility: hidden or a closed details; a child that sets visibility: visible under a hidden parent is visible, and an aria-hidden node that paints is visible. Role queries never match hidden or aria-hidden nodes, whatever this says.

Value: bool

View source