Docs · API reference · Motus.Recorder
IActionCaptureEngine Interface#
Captures browser interactions and produces a stream of ResolvedAction objects.
public interface IActionCaptureEngine : System.IAsyncDisposable
Derived
↳ ActionCaptureEngine
Implements System.IAsyncDisposable
Properties#
Actions Property#
Async stream of resolved actions. Completes when recording stops.
System.Collections.Generic.IAsyncEnumerable<Motus.Recorder.Records.ResolvedAction> Actions { get; }
Property Value#
System.Collections.Generic.IAsyncEnumerable<ResolvedAction>
CapturedActions Property#
Snapshot of all resolved actions captured so far.
System.Collections.Generic.IReadOnlyList<Motus.Recorder.Records.ResolvedAction> CapturedActions { get; }
Property Value#
System.Collections.Generic.IReadOnlyList<ResolvedAction>
IsRecording Property#
Whether the engine is currently recording.
bool IsRecording { get; }
Property Value#
Methods#
StartAsync(IPage, CancellationToken) Method#
Starts recording actions on the given page.
System.Threading.Tasks.Task StartAsync(Motus.Abstractions.IPage page, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
Parameters#
page IPage
ct System.Threading.CancellationToken
Returns#
StopAsync(CancellationToken) Method#
Stops recording, flushes pending actions, and completes the action stream.
System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
Parameters#
ct System.Threading.CancellationToken