Xamarin.UITest.Android.AndroidApp.WaitForElement Method
Wait function that will repeatly query the app until a matching element is found. Throws a TimeoutException if no element is found within the time limit.

Syntax

public Xamarin.UITest.Queries.AppResult[] WaitForElement (Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> query, string timeoutMessage, Nullable<TimeSpan> timeout, Nullable<TimeSpan> retryFrequency, Nullable<TimeSpan> postTimeout)

Parameters

query
Entry point for the fluent API to specify the element.
timeoutMessage
The message used in the TimeoutException.
timeout
The TimeSpan to wait before failing.
retryFrequency
The TimeSpan to wait between each query call to the app.
postTimeout
The final TimeSpan to wait after the element has been found.

Returns

An array representing the matched view objects.

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