Docs · API reference · Motus.Abstractions
IWaitCondition Interface#
Defines a custom wait condition that can be used with the WaitForAsync API.
public interface IWaitCondition
Properties#
ConditionName Property#
Gets the name used in wait expressions (e.g. "animation-complete").
string ConditionName { get; }
Property Value#
Methods#
EvaluateAsync(IPage, WaitConditionOptions) Method#
Returns true when the condition is satisfied. Called repeatedly with configurable polling interval until it returns true or the timeout elapses.
System.Threading.Tasks.Task<bool> EvaluateAsync(Motus.Abstractions.IPage page, Motus.Abstractions.WaitConditionOptions? options=null);
Parameters#
page IPage
The page to evaluate the condition on.
options WaitConditionOptions
Polling and timeout configuration. Null uses engine defaults.
Returns#
System.Threading.Tasks.Task<System.Boolean>
True if the condition is satisfied.