Docs · API reference · Motus.Abstractions
LocatorOptions Class#
Options for creating a locator.
public sealed record LocatorOptions : System.IEquatable<Motus.Abstractions.LocatorOptions>
Inheritance System.Object → LocatorOptions
Implements System.IEquatable<LocatorOptions>
Properties#
Has Property#
Matches elements that have a descendant matching the inner locator.
public Motus.Abstractions.ILocator? Has { get; init; }
Property Value#
HasNot Property#
Matches elements that do not have a descendant matching the inner locator.
public Motus.Abstractions.ILocator? HasNot { get; init; }
Property Value#
HasText Property#
Matches elements containing specified text somewhere inside, possibly in a child element.
public string? HasText { get; init; }
Property Value#
PierceShadow Property#
Whether to pierce shadow DOM boundaries when locating elements. Null uses the engine default (true).
public System.Nullable<bool> PierceShadow { get; init; }
Property Value#
System.Nullable<System.Boolean>
Timeout Property#
Maximum time in milliseconds to wait for the element.
public System.Nullable<double> Timeout { get; init; }