Table of Contents

Class ElementInfo

Namespace
Cress.Recorder
Assembly
Cress.Recorder.dll

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

string

ClassName

public string ClassName { get; init; }

Property Value

string

ControlType

public string ControlType { get; init; }

Property Value

string

CssSelector

Synthesised CSS path (fallback locator, web only).

public string? CssSelector { get; init; }

Property Value

string

FrameworkId

public string FrameworkId { get; init; }

Property Value

string

Label

aria-label or associated label text.

public string? Label { get; init; }

Property Value

string

Name

public string Name { get; init; }

Property Value

string

Placeholder

Input placeholder text.

public string? Placeholder { get; init; }

Property Value

string

ProcessId

public int ProcessId { get; init; }

Property Value

int

Role

ARIA role (explicit or implicit, e.g. "button", "textbox").

public string? Role { get; init; }

Property Value

string

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

string

TestId

data-testid attribute value (web only).

public string? TestId { get; init; }

Property Value

string

Text

Visible innerText (truncated to 80 chars).

public string? Text { get; init; }

Property Value

string

XPath

DOM XPath expression (web only).

public string? XPath { get; init; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.