Skip to content

LocatorExpression

Namespace: E2E

public sealed record LocatorExpression : IEquatable<LocatorExpression>

A locator expression. Query kinds (role, text, label, testid, placeholder, displayValue) search the descendants of Parent when it is set. filter and index narrow Source. union matches either Left or Right, each node once, in document order. selector is a CSS or XPath selector in the engine’s own language, and frame scopes Source into the iframe Selector names.

Inheritance: object

Implements: IEquatable<LocatorExpression>

View source

public const int LastIndex = -1

Value: int

View source

public bool? Checked { get; init; }

Value: bool?

View source

public bool? Disabled { get; init; }

Value: bool?

View source

public bool Exact { get; init; }

Value: bool

View source

public bool? Expanded { get; init; }

Value: bool?

View source

public LocatorExpression? Has { get; init; }

Value: LocatorExpression

View source

public TextMatch? HasText { get; init; }

Value: TextMatch

View source

public bool HasTextExact { get; init; }

Whether HasText must equal the text instead of being a case-insensitive substring of it, as upstream’s text pattern carries its exact. Filter(TextMatch) builds a substring match (upstream’s { exact: false }), so it leaves this false. A Regex ignores it. .NET-only: TextMatch holds no exactness of its own.

Value: bool

View source

public int? Index { get; init; }

Value: int?

View source

public string Kind { get; init; }

Value: string

View source

public LocatorExpression? Left { get; init; }

Value: LocatorExpression

View source

public int? Level { get; init; }

Value: int?

View source

public LocatorExpression? Parent { get; init; }

Value: LocatorExpression

View source

public bool? Pressed { get; init; }

Value: bool?

View source

public LocatorExpression? Right { get; init; }

Value: LocatorExpression

View source

public string? Role { get; init; }

Value: string

View source

public bool? Selected { get; init; }

Value: bool?

View source

public string? Selector { get; init; }

The expression of a selector query, in the engine’s own selector language (a device engine’s, or the web engine’s CSS and XPath), or the selector of the iframe a frame expression scopes Source into.

Value: string

View source

public LocatorExpression? Source { get; init; }

Value: LocatorExpression

View source

public TextMatch? Value { get; init; }

The role query’s name, or the value every other query kind matches.

Value: TextMatch

View source

public bool Visible { get; init; }

Value: bool

View source

public string Describe()

Returns: string

View source