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#
InferenceTimeout Property#
Maximum time allowed for the full analysis per page.
public System.TimeSpan InferenceTimeout { get; init; }
Property Value#
MaxSelectorLength Property#
Maximum character length for a generated selector before it is discarded.
public int MaxSelectorLength { get; init; }
Property Value#
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#
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; }