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>
Fields
Section titled “Fields”LastIndex
Section titled “LastIndex”public const int LastIndex = -1Value: int
Properties
Section titled “Properties”Checked
Section titled “Checked”public bool? Checked { get; init; }Value: bool?
Disabled
Section titled “Disabled”public bool? Disabled { get; init; }Value: bool?
public bool Exact { get; init; }Value: bool
Expanded
Section titled “Expanded”public bool? Expanded { get; init; }Value: bool?
public LocatorExpression? Has { get; init; }Value: LocatorExpression
HasText
Section titled “HasText”public TextMatch? HasText { get; init; }Value: TextMatch
HasTextExact
Section titled “HasTextExact”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
public int? Index { get; init; }Value: int?
public string Kind { get; init; }Value: string
public LocatorExpression? Left { get; init; }Value: LocatorExpression
public int? Level { get; init; }Value: int?
Parent
Section titled “Parent”public LocatorExpression? Parent { get; init; }Value: LocatorExpression
Pressed
Section titled “Pressed”public bool? Pressed { get; init; }Value: bool?
public LocatorExpression? Right { get; init; }Value: LocatorExpression
public string? Role { get; init; }Value: string
Selected
Section titled “Selected”public bool? Selected { get; init; }Value: bool?
Selector
Section titled “Selector”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
Source
Section titled “Source”public LocatorExpression? Source { get; init; }Value: LocatorExpression
public TextMatch? Value { get; init; }The role query’s name, or the value every other query kind matches.
Value: TextMatch
Visible
Section titled “Visible”public bool Visible { get; init; }Value: bool
Methods
Section titled “Methods”Describe()
Section titled “Describe()”public string Describe()Returns: string