共用方式為


IApp.WaitForNoElement 方法

定義

多載

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

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

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

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

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

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

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

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

public void WaitForNoElement (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> query, string timeoutMessage = "Timed out waiting for no element...", Nullable<TimeSpan> timeout = null, Nullable<TimeSpan> retryFrequency = null, Nullable<TimeSpan> postTimeout = null);
abstract member WaitForNoElement : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * string * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> -> unit
Public Sub WaitForNoElement (query As Func(Of AppQuery, AppQuery), Optional timeoutMessage As String = "Timed out waiting for no element...", Optional timeout As Nullable(Of TimeSpan) = null, Optional retryFrequency As Nullable(Of TimeSpan) = null, Optional postTimeout As Nullable(Of TimeSpan) = null)

參數

query
Func<AppQuery,AppQuery>

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

timeoutMessage
String

中使用的 TimeoutException 訊息。

timeout
Nullable<TimeSpan>

TimeSpan 失敗前等候的 。

retryFrequency
Nullable<TimeSpan>

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

postTimeout
Nullable<TimeSpan>

專案不再顯示之後要等候的最後 TimeSpan 一個。

適用於

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

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

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

參數

query
Func<AppQuery,AppWebQuery>

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

timeoutMessage
String

中使用的 TimeoutException 訊息。

timeout
Nullable<TimeSpan>

TimeSpan 失敗前等候的 。

retryFrequency
Nullable<TimeSpan>

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

postTimeout
Nullable<TimeSpan>

專案不再顯示之後要等候的最後 TimeSpan 一個。

適用於

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

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

public void WaitForNoElement (string marked, string timeoutMessage = "Timed out waiting for no element...", Nullable<TimeSpan> timeout = null, Nullable<TimeSpan> retryFrequency = null, Nullable<TimeSpan> postTimeout = null);
abstract member WaitForNoElement : string * string * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> -> unit
Public Sub WaitForNoElement (marked As String, Optional timeoutMessage As String = "Timed out waiting for no element...", Optional timeout As Nullable(Of TimeSpan) = null, Optional retryFrequency As Nullable(Of TimeSpan) = null, Optional postTimeout As Nullable(Of TimeSpan) = null)

參數

marked
String

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

timeoutMessage
String

中使用的 TimeoutException 訊息。

timeout
Nullable<TimeSpan>

TimeSpan 失敗前等候的 。

retryFrequency
Nullable<TimeSpan>

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

postTimeout
Nullable<TimeSpan>

專案不再顯示之後要等候的最後 TimeSpan 一個。

適用於