Xamarin.UITest Guides | Samples

Xamarin.UITest.IApp.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

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.

Requirements

Namespace: Xamarin.UITest
Assembly: Xamarin.UITest (in Xamarin.UITest.dll)
Assembly Versions: 22.0.0.0