Docs · API reference · Motus.Abstractions

AssertionOptions Class#

Options for assertions on pages, locators, and other objects.

public sealed record AssertionOptions : System.IEquatable<Motus.Abstractions.AssertionOptions>

Inheritance System.Object → AssertionOptions

Implements System.IEquatable<AssertionOptions>

Properties#

Message Property#

Custom error message to display on assertion failure.

public string? Message { get; init; }

Property Value#

System.String

Timeout Property#

Maximum time in milliseconds to wait for the assertion to pass.

public System.Nullable<int> Timeout { get; init; }

Property Value#

System.Nullable<System.Int32>