Docs · API reference · Motus.Recorder.PageAnalysis

DiscoveredElement Class#

Pairs a discovered page element with its inferred selector and derived C# member name.

public sealed record DiscoveredElement : System.IEquatable<Motus.Recorder.PageAnalysis.DiscoveredElement>

Inheritance System.Object → DiscoveredElement

Implements System.IEquatable<DiscoveredElement>

Constructors#

DiscoveredElement(PageElementInfo, string, string, Nullable<int>) Constructor#

Pairs a discovered page element with its inferred selector and derived C# member name.

public DiscoveredElement(Motus.Recorder.PageAnalysis.PageElementInfo Info, string? Selector, string MemberName, System.Nullable<int> BackendNodeId=null);

Parameters#

Info PageElementInfo

Raw element info captured from the DOM crawl.

Selector System.String

Inferred locator string, or null when no unique selector exists.

MemberName System.String

C# member name for the generated POM property.

BackendNodeId System.Nullable<System.Int32>

CDP backend node id of the matched element, when resolvable.

Properties#

BackendNodeId Property#

CDP backend node id of the matched element, when resolvable.

public System.Nullable<int> BackendNodeId { get; init; }

Property Value#

System.Nullable<System.Int32>

Info Property#

Raw element info captured from the DOM crawl.

public Motus.Recorder.PageAnalysis.PageElementInfo Info { get; init; }

Property Value#

PageElementInfo

MemberName Property#

C# member name for the generated POM property.

public string MemberName { get; init; }

Property Value#

System.String

Selector Property#

Inferred locator string, or null when no unique selector exists.

public string? Selector { get; init; }

Property Value#

System.String