iOSApp.ScrollTo 方法

定义

滚动,直到屏幕上显示与 匹配 toMarked 的元素。

public void ScrollTo (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 ScrollTo : string * string * Xamarin.UITest.ScrollStrategy * double * int * bool * Nullable<TimeSpan> -> unit
override this.ScrollTo : string * string * Xamarin.UITest.ScrollStrategy * double * int * bool * Nullable<TimeSpan> -> unit
Public Sub ScrollTo (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) , (跨元素轻扫的距离。 对于编程滚动,忽略。

swipeSpeed
Int32

手势的速度。 对于编程滚动,忽略。

withInertia
Boolean

轻扫是否应导致惯性。 对于编程滚动,忽略。

timeout
Nullable<TimeSpan>

TimeSpan 失败之前等待的 。

实现

适用于