Docs · API reference · Motus.Recorder.CodeEmit

EmittedLocator Class#

Metadata about a single locator call emitted into generated test/POM source, used by selector manifest emission to map each locator to its source line.

public sealed record EmittedLocator : System.IEquatable<Motus.Recorder.CodeEmit.EmittedLocator>

Inheritance System.Object → EmittedLocator

Implements System.IEquatable<EmittedLocator>

Constructors#

EmittedLocator(string, string, int, string, Nullable<int>) Constructor#

Metadata about a single locator call emitted into generated test/POM source, used by selector manifest emission to map each locator to its source line.

public EmittedLocator(string Selector, string LocatorMethod, int SourceLine, string PageUrl, System.Nullable<int> BackendNodeId);

Parameters#

Selector System.String

The selector string passed to the locator method.

LocatorMethod System.String

The locator factory method (e.g. "Locator", "GetByRole").

SourceLine System.Int32

1-based line number of the emitted call within the generated file.

PageUrl System.String

URL of the page at the time the locator was captured.

BackendNodeId System.Nullable<System.Int32>

CDP backend node id of the element, when known.

Properties#

BackendNodeId Property#

CDP backend node id of the element, when known.

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

Property Value#

System.Nullable<System.Int32>

LocatorMethod Property#

The locator factory method (e.g. "Locator", "GetByRole").

public string LocatorMethod { get; init; }

Property Value#

System.String

PageUrl Property#

URL of the page at the time the locator was captured.

public string PageUrl { get; init; }

Property Value#

System.String

Selector Property#

The selector string passed to the locator method.

public string Selector { get; init; }

Property Value#

System.String

SourceLine Property#

1-based line number of the emitted call within the generated file.

public int SourceLine { get; init; }

Property Value#

System.Int32