IApp.ScrollDown 方法

定義

多載

ScrollDown(String, ScrollStrategy, Double, Int32, Boolean)

向下捲動第一個專案比對查詢。

ScrollDown(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean)

向下捲動第一個專案比對查詢。

ScrollDown(String, ScrollStrategy, Double, Int32, Boolean)

向下捲動第一個專案比對查詢。

public void ScrollDown (string withinMarked, Xamarin.UITest.ScrollStrategy strategy = Xamarin.UITest.ScrollStrategy.Auto, double swipePercentage = 0.67, int swipeSpeed = 500, bool withInertia = true);
abstract member ScrollDown : string * Xamarin.UITest.ScrollStrategy * double * int * bool -> unit
Public Sub ScrollDown (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)

參數

withinMarked
String

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

strategy
ScrollStrategy

捲動元素的策略。

swipePercentage
Double

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

swipeSpeed
Int32

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

withInertia
Boolean

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

適用於

ScrollDown(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean)

向下捲動第一個專案比對查詢。

public void ScrollDown (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);
abstract member ScrollDown : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Xamarin.UITest.ScrollStrategy * double * int * bool -> unit
Public Sub ScrollDown (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)

參數

withinQuery
Func<AppQuery,AppQuery>

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

strategy
ScrollStrategy

捲動元素的策略。

swipePercentage
Double

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

swipeSpeed
Int32

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

withInertia
Boolean

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

適用於