Class ElementInfo
Snapshot of an element's identity fields captured at event time. Covers both desktop UIA fields (R1-R6) and web/ARIA fields (V3-V4).
public sealed record ElementInfo : IEquatable<ElementInfo>
- Inheritance
-
ElementInfo
- Implements
- Inherited Members
Properties
AutomationId
public string AutomationId { get; init; }
Property Value
ClassName
public string ClassName { get; init; }
Property Value
ControlType
public string ControlType { get; init; }
Property Value
CssSelector
Synthesised CSS path (fallback locator, web only).
public string? CssSelector { get; init; }
Property Value
FrameworkId
public string FrameworkId { get; init; }
Property Value
Label
aria-label or associated label text.
public string? Label { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Placeholder
Input placeholder text.
public string? Placeholder { get; init; }
Property Value
ProcessId
public int ProcessId { get; init; }
Property Value
Role
ARIA role (explicit or implicit, e.g. "button", "textbox").
public string? Role { get; init; }
Property Value
RuntimeId
public int[] RuntimeId { get; init; }
Property Value
- int[]
TagName
Lower-case HTML tag name (e.g. "input", "button"), web only.
public string? TagName { get; init; }
Property Value
TestId
data-testid attribute value (web only).
public string? TestId { get; init; }
Property Value
Text
Visible innerText (truncated to 80 chars).
public string? Text { get; init; }
Property Value
XPath
DOM XPath expression (web only).
public string? XPath { get; init; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.