IApp.WaitForElement IApp.WaitForElement IApp.WaitForElement Method

Definition

Overloads

WaitForElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

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.

WaitForElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

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.

WaitForElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

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.

WaitForElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

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.

public Xamarin.UITest.Queries.AppResult[] WaitForElement (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> query, string timeoutMessage = "Timed out waiting for element...", Nullable<TimeSpan> timeout = null, Nullable<TimeSpan> retryFrequency = null, Nullable<TimeSpan> postTimeout = null);
abstract member WaitForElement : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * string * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> -> Xamarin.UITest.Queries.AppResult[]
Public Function WaitForElement (query As Func(Of AppQuery, AppQuery), Optional timeoutMessage As String = "Timed out waiting for element...", Optional timeout As Nullable(Of TimeSpan) = null, Optional retryFrequency As Nullable(Of TimeSpan) = null, Optional postTimeout As Nullable(Of TimeSpan) = null) As AppResult()

Parameters

query
Func<AppQuery,AppQuery>

Entry point for the fluent API to specify the element.

timeoutMessage
String String String

The message used in the TimeoutException.

timeout
Nullable<TimeSpan>

The TimeSpan to wait before failing.

retryFrequency
Nullable<TimeSpan>

The TimeSpan to wait between each query call to the app.

postTimeout
Nullable<TimeSpan>

The final TimeSpan to wait after the element has been found.

Returns

An array representing the matched view objects.

WaitForElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

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.

public Xamarin.UITest.Queries.AppWebResult[] WaitForElement (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppWebQuery> query, string timeoutMessage = "Timed out waiting for element...", Nullable<TimeSpan> timeout = null, Nullable<TimeSpan> retryFrequency = null, Nullable<TimeSpan> postTimeout = null);
abstract member WaitForElement : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery> * string * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> -> Xamarin.UITest.Queries.AppWebResult[]
Public Function WaitForElement (query As Func(Of AppQuery, AppWebQuery), Optional timeoutMessage As String = "Timed out waiting for element...", Optional timeout As Nullable(Of TimeSpan) = null, Optional retryFrequency As Nullable(Of TimeSpan) = null, Optional postTimeout As Nullable(Of TimeSpan) = null) As AppWebResult()

Parameters

query
Func<AppQuery,AppWebQuery>

Entry point for the fluent API to specify the element.

timeoutMessage
String String String

The message used in the TimeoutException.

timeout
Nullable<TimeSpan>

The TimeSpan to wait before failing.

retryFrequency
Nullable<TimeSpan>

The TimeSpan to wait between each query call to the app.

postTimeout
Nullable<TimeSpan>

The final TimeSpan to wait after the element has been found.

Returns

An array representing the matched view objects.

WaitForElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

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.

public Xamarin.UITest.Queries.AppResult[] WaitForElement (string marked, string timeoutMessage = "Timed out waiting for element...", Nullable<TimeSpan> timeout = null, Nullable<TimeSpan> retryFrequency = null, Nullable<TimeSpan> postTimeout = null);
abstract member WaitForElement : string * string * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> -> Xamarin.UITest.Queries.AppResult[]
Public Function WaitForElement (marked As String, Optional timeoutMessage As String = "Timed out waiting for element...", Optional timeout As Nullable(Of TimeSpan) = null, Optional retryFrequency As Nullable(Of TimeSpan) = null, Optional postTimeout As Nullable(Of TimeSpan) = null) As AppResult()

Parameters

marked
String String String

Marked selector to match. See Marked(String) for more information.

timeoutMessage
String String String

The message used in the TimeoutException.

timeout
Nullable<TimeSpan>

The TimeSpan to wait before failing.

retryFrequency
Nullable<TimeSpan>

The TimeSpan to wait between each query call to the app.

postTimeout
Nullable<TimeSpan>

The final TimeSpan to wait after the element has been found.

Returns

An array representing the matched view objects.

Applies to