Docs · API reference · Motus.Recorder.PageAnalysis

PageAnalysisOptions Class#

Configuration for PageAnalysisEngine.

public sealed class PageAnalysisOptions

Inheritance System.Object → PageAnalysisOptions

Properties#

DetectEventListeners Property#

When true, performs a second analysis pass using DOMDebugger.getEventListeners to discover elements with directly-attached JS event handlers (vanilla JS, jQuery, etc.). React event delegation is not captured. Disabled by default.

public bool DetectEventListeners { get; init; }

Property Value#

System.Boolean

InferenceTimeout Property#

Maximum time allowed for the full analysis per page.

public System.TimeSpan InferenceTimeout { get; init; }

Property Value#

System.TimeSpan

MaxSelectorLength Property#

Maximum character length for a generated selector before it is discarded.

public int MaxSelectorLength { get; init; }

Property Value#

System.Int32

Scope Property#

Optional CSS selector to scope element discovery to a specific container (e.g. ".modal-dialog", "#login-form"). When null, the entire document is crawled.

public string? Scope { get; init; }

Property Value#

System.String

SelectorPriority Property#

Ordered list of selector strategy names to try (e.g. "testid", "role", "text", "css").

public System.Collections.Generic.IReadOnlyList<string>? SelectorPriority { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyList<System.String>