IApp.WaitForElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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>) |
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>) |
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>)
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
- timeoutMessage
- String
The message used in the TimeoutException.
Returns
An array representing the matched view objects.
Applies to
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
The message used in the TimeoutException.
Returns
An array representing the matched view objects.
Applies to
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
Marked selector to match. See Marked(String) for more information.
- timeoutMessage
- String
The message used in the TimeoutException.
Returns
An array representing the matched view objects.