共用方式為


IApp.WaitForElement 方法

定義

多載

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

等候函式會重複查詢應用程式,直到找到相符的專案為止。 如果在時間限制內找不到任何專案,則會擲回 TimeoutException

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

等候函式會重複查詢應用程式,直到找到相符的專案為止。 如果在時間限制內找不到任何專案,則會擲回 TimeoutException

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

等候函式會重複查詢應用程式,直到找到相符的專案為止。 如果在時間限制內找不到任何專案,則會擲回 TimeoutException

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

等候函式會重複查詢應用程式,直到找到相符的專案為止。 如果在時間限制內找不到任何專案,則會擲回 TimeoutException

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()

參數

query
Func<AppQuery,AppQuery>

Fluent API 的進入點,以指定 專案。

timeoutMessage
String

中使用的 TimeoutException 訊息。

timeout
Nullable<TimeSpan>

TimeSpan 失敗前等候的 。

retryFrequency
Nullable<TimeSpan>

TimeSpan 應用程式的每個查詢呼叫之間等候的 。

postTimeout
Nullable<TimeSpan>

找到專案之後要等候的最後 TimeSpan 一個。

傳回

AppResult[]

陣列,表示相符的檢視物件。

適用於

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

等候函式會重複查詢應用程式,直到找到相符的專案為止。 如果在時間限制內找不到任何專案,則會擲回 TimeoutException

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()

參數

query
Func<AppQuery,AppWebQuery>

Fluent API 的進入點,以指定 專案。

timeoutMessage
String

中使用的 TimeoutException 訊息。

timeout
Nullable<TimeSpan>

TimeSpan 失敗前等候的 。

retryFrequency
Nullable<TimeSpan>

TimeSpan 應用程式的每個查詢呼叫之間等候的 。

postTimeout
Nullable<TimeSpan>

找到專案之後要等候的最後 TimeSpan 一個。

傳回

AppWebResult[]

陣列,表示相符的檢視物件。

適用於

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

等候函式會重複查詢應用程式,直到找到相符的專案為止。 如果在時間限制內找不到任何專案,則會擲回 TimeoutException

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()

參數

marked
String

標示要比對的選取器。 如需相關資訊,請參閱 Marked(String)

timeoutMessage
String

中使用的 TimeoutException 訊息。

timeout
Nullable<TimeSpan>

TimeSpan 失敗前等候的 。

retryFrequency
Nullable<TimeSpan>

TimeSpan 應用程式的每個查詢呼叫之間等候的 。

postTimeout
Nullable<TimeSpan>

找到專案之後要等候的最後 TimeSpan 一個。

傳回

AppResult[]

陣列,表示相符的檢視物件。

適用於