IApp.ScrollUpTo 方法

定義

多載

ScrollUpTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

向上捲動,直到畫面上顯示符合 toQuery 的專案為止。

ScrollUpTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

向上捲動,直到畫面上顯示符合 toQuery 的專案為止。

ScrollUpTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

向上捲動,直到畫面上顯示符合 toMarked 的專案為止。

ScrollUpTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

向上捲動,直到畫面上顯示符合 toMarked 的專案為止。

ScrollUpTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

向上捲動,直到畫面上顯示符合 toQuery 的專案為止。

public void ScrollUpTo (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> toQuery, Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> withinQuery = null, Xamarin.UITest.ScrollStrategy strategy = Xamarin.UITest.ScrollStrategy.Auto, double swipePercentage = 0.67, int swipeSpeed = 500, bool withInertia = true, Nullable<TimeSpan> timeout = null);
abstract member ScrollUpTo : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Xamarin.UITest.ScrollStrategy * double * int * bool * Nullable<TimeSpan> -> unit
Public Sub ScrollUpTo (toQuery As Func(Of AppQuery, AppQuery), Optional withinQuery As Func(Of AppQuery, AppQuery) = null, Optional strategy As ScrollStrategy = Xamarin.UITest.ScrollStrategy.Auto, Optional swipePercentage As Double = 0.67, Optional swipeSpeed As Integer = 500, Optional withInertia As Boolean = true, Optional timeout As Nullable(Of TimeSpan) = null)

參數

toQuery
Func<AppQuery,AppQuery>

Fluent API 的進入點,指定要在螢幕上顯示的專案。

withinQuery
Func<AppQuery,AppQuery>

Fluent API 的進入點,指定要捲動的專案。

strategy
ScrollStrategy

捲動元素的策略。

swipePercentage
Double

從 0.0 撥動到 1.0 到 1.0) (元素之間的距離。 忽略程式設計捲動。

swipeSpeed
Int32

手勢的速度。 忽略程式設計捲動。

withInertia
Boolean

撥動是否應該造成慣性。 忽略程式設計捲動。

timeout
Nullable<TimeSpan>

TimeSpan 等候再失敗的 。

適用於

ScrollUpTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

向上捲動,直到畫面上顯示符合 toQuery 的專案為止。

public void ScrollUpTo (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppWebQuery> toQuery, Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> withinQuery = null, Xamarin.UITest.ScrollStrategy strategy = Xamarin.UITest.ScrollStrategy.Auto, double swipePercentage = 0.67, int swipeSpeed = 500, bool withInertia = true, Nullable<TimeSpan> timeout = null);
abstract member ScrollUpTo : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery> * Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Xamarin.UITest.ScrollStrategy * double * int * bool * Nullable<TimeSpan> -> unit
Public Sub ScrollUpTo (toQuery As Func(Of AppQuery, AppWebQuery), Optional withinQuery As Func(Of AppQuery, AppQuery) = null, Optional strategy As ScrollStrategy = Xamarin.UITest.ScrollStrategy.Auto, Optional swipePercentage As Double = 0.67, Optional swipeSpeed As Integer = 500, Optional withInertia As Boolean = true, Optional timeout As Nullable(Of TimeSpan) = null)

參數

toQuery
Func<AppQuery,AppWebQuery>

Fluent API 的進入點,指定要在螢幕上顯示的專案。

withinQuery
Func<AppQuery,AppQuery>

Fluent API 的進入點,指定要捲動的專案。

strategy
ScrollStrategy

捲動元素的策略。

swipePercentage
Double

從 0.0 撥動到 1.0 到 1.0) (元素之間的距離。 忽略程式設計捲動。

swipeSpeed
Int32

手勢的速度。 忽略程式設計捲動。

withInertia
Boolean

撥動是否應該造成慣性。 忽略程式設計捲動。

timeout
Nullable<TimeSpan>

TimeSpan 等候再失敗的 。

適用於

ScrollUpTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

向上捲動,直到畫面上顯示符合 toMarked 的專案為止。

public void ScrollUpTo (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppWebQuery> toQuery, string withinMarked, Xamarin.UITest.ScrollStrategy strategy = Xamarin.UITest.ScrollStrategy.Auto, double swipePercentage = 0.67, int swipeSpeed = 500, bool withInertia = true, Nullable<TimeSpan> timeout = null);
abstract member ScrollUpTo : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery> * string * Xamarin.UITest.ScrollStrategy * double * int * bool * Nullable<TimeSpan> -> unit
Public Sub ScrollUpTo (toQuery As Func(Of AppQuery, AppWebQuery), withinMarked As String, Optional strategy As ScrollStrategy = Xamarin.UITest.ScrollStrategy.Auto, Optional swipePercentage As Double = 0.67, Optional swipeSpeed As Integer = 500, Optional withInertia As Boolean = true, Optional timeout As Nullable(Of TimeSpan) = null)

參數

toQuery
Func<AppQuery,AppWebQuery>

Fluent API 的進入點,指定要在螢幕上顯示的專案。

withinMarked
String

標示選取器以選取要捲動的專案。 如需相關資訊,請參閱 Marked(String)

strategy
ScrollStrategy

捲動元素的策略。

swipePercentage
Double

從 0.0 撥動到 1.0 到 1.0) (元素之間的距離。 忽略程式設計捲動。

swipeSpeed
Int32

手勢的速度。 忽略程式設計捲動。

withInertia
Boolean

撥動是否應該造成慣性。 忽略程式設計捲動。

timeout
Nullable<TimeSpan>

TimeSpan 等候再失敗的 。

適用於

ScrollUpTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

向上捲動,直到畫面上顯示符合 toMarked 的專案為止。

public void ScrollUpTo (string toMarked, string withinMarked = null, Xamarin.UITest.ScrollStrategy strategy = Xamarin.UITest.ScrollStrategy.Auto, double swipePercentage = 0.67, int swipeSpeed = 500, bool withInertia = true, Nullable<TimeSpan> timeout = null);
abstract member ScrollUpTo : string * string * Xamarin.UITest.ScrollStrategy * double * int * bool * Nullable<TimeSpan> -> unit
Public Sub ScrollUpTo (toMarked As String, Optional withinMarked As String = null, Optional strategy As ScrollStrategy = Xamarin.UITest.ScrollStrategy.Auto, Optional swipePercentage As Double = 0.67, Optional swipeSpeed As Integer = 500, Optional withInertia As Boolean = true, Optional timeout As Nullable(Of TimeSpan) = null)

參數

toMarked
String

標示選取器以選取要在螢幕上顯示的專案。 如需相關資訊,請參閱 Marked(String)

withinMarked
String

標示選取器以選取要捲動的專案。 如需相關資訊,請參閱 Marked(String)

strategy
ScrollStrategy

捲動元素的策略。

swipePercentage
Double

從 0.0 撥動到 1.0 到 1.0) (元素之間的距離。 忽略程式設計捲動。

swipeSpeed
Int32

手勢的速度。 忽略程式設計捲動。

withInertia
Boolean

撥動是否應該造成慣性。 忽略程式設計捲動。

timeout
Nullable<TimeSpan>

TimeSpan 等候再失敗的 。

適用於