Specifies the condition of the component to wait for. By default occurs upon the page object initialization.

It calls component’s Wait method passing Until value to it.

public class SamplePage : Page<_>
{
    // Wait upon page oject initialization until the control is visible.
    [WaitFor]
    public Text<_> ContentBlock { get; private set; }

    // Wait upon page oject de-initialization until the control is missing or hidden.
    [WaitFor(Until.MissingOrHidden, TriggerEvents.DeInit)]
    public Text<_> SavingIndicator { get; private set; }
}

Parameters

Until

until = Until.Visible

The waiting condition. The default is Visible.

TriggerEvents

on = TriggerEvents.AfterClick

The trigger events. The default is Init.

TriggerPriority

priority = TriggerPriority.Medium

The priority. The default is Medium.

Properties

public bool

ThrowOnPresenceFailure { get; set; }

Gets or sets a value indicating whether to throw the exception on the presence (exists or visible) failure. The default value is true.

public bool

ThrowOnAbsenceFailure { get; set; }

Gets or sets a value indicating whether to throw the exception on the absence (missing or hidden) failure. The default value is true.

public double

PresenceTimeout { get; set; }

Gets or sets the presence (exists or visible) timeout in seconds. The default value is taken from AtataContext.Current.RetryTimeout.TotalSeconds.

public double

AbsenceTimeout { get; set; }

Gets or sets the absence (missing or hidden) timeout in seconds. The default value is taken from AtataContext.Current.RetryTimeout.TotalSeconds.

public double

RetryInterval { get; set; }

Gets or sets the retry interval. The default value is taken from AtataContext.Current.RetryInterval.TotalSeconds.