Xamarin.UITest Guides | Samples

Xamarin.UITest.IApp.WaitForNoElement Method

Wait function that will repeatly query the app until a matching element is no longer found. Throws a TimeoutException if the element is visible at the end of the time limit.

Syntax

public Void WaitForNoElement (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 is no longer visible.

Requirements

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