Xamarin.UITest.Android.AndroidApp.WaitFor Method
Generic wait function that will repeatly call the predicate function until it returns true. Throws a TimeoutException if the predicate is not fullfilled within the time limit.

Syntax

public void WaitFor (Func<bool> predicate, string timeoutMessage, Nullable<TimeSpan> timeout, Nullable<TimeSpan> retryFrequency, Nullable<TimeSpan> postTimeout)

Parameters

predicate
Predicate function that should return true when waiting is complete.
timeoutMessage
The message used in the TimeoutException.
timeout
The TimeSpan to wait before failing.
retryFrequency
The TimeSpan to wait between each call to the predicate.
postTimeout
The final TimeSpan to wait after the predicate returns true.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Xamarin.UITest.Android
Assembly: Xamarin.UITest (in Xamarin.UITest.dll)
Assembly Versions: 0.0.0.0