ResolvedAction Class#
Wraps an ActionRecord with the inferred selector for its target element. Selector is null when inference fails or the action type needs no selector (navigation, keyboard, scroll, dialog).
public sealed record ResolvedAction : System.IEquatable<Motus.Recorder.Records.ResolvedAction>
Inheritance System.Object → ResolvedAction
Implements System.IEquatable<ResolvedAction>
Constructors#
ResolvedAction(ActionRecord, string, string, Nullable<int>) Constructor#
Wraps an ActionRecord with the inferred selector for its target element. Selector is null when inference fails or the action type needs no selector (navigation, keyboard, scroll, dialog).
public ResolvedAction(Motus.Recorder.Records.ActionRecord Source, string? Selector, string? LocatorMethod=null, System.Nullable<int> BackendNodeId=null);
Parameters#
Source ActionRecord
The raw captured action.
Selector System.String
Inferred locator string, or null when inference is not applicable.
LocatorMethod System.String
The locator factory method used for the selector (e.g. "Locator").
BackendNodeId System.Nullable<System.Int32>
The CDP backend node ID of the target element, when resolvable.
Properties#
BackendNodeId Property#
The CDP backend node ID of the target element, when resolvable.
public System.Nullable<int> BackendNodeId { get; init; }
Property Value#
LocatorMethod Property#
The locator factory method used for the selector (e.g. "Locator").
public string? LocatorMethod { get; init; }
Property Value#
Selector Property#
Inferred locator string, or null when inference is not applicable.
public string? Selector { get; init; }
Property Value#
Source Property#
The raw captured action.
public Motus.Recorder.Records.ActionRecord Source { get; init; }