AndroidApp.ScrollLeftTo 方法

定义

重载

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

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

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

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

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

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

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

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

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

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

public void ScrollLeftTo (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);
member this.ScrollLeftTo : string * string * Xamarin.UITest.ScrollStrategy * double * int * bool * Nullable<TimeSpan> -> unit
Public Sub ScrollLeftTo (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 失败之前等待的 。

适用于

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

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

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

swipeSpeed
Int32

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

withInertia
Boolean

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

timeout
Nullable<TimeSpan>

TimeSpan 失败之前等待的 。

适用于

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

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

public void ScrollLeftTo (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);
member this.ScrollLeftTo : 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 ScrollLeftTo (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) , (跨元素轻扫的距离。 对于编程滚动,忽略。

swipeSpeed
Int32

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

withInertia
Boolean

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

timeout
Nullable<TimeSpan>

TimeSpan 失败之前等待的 。

适用于

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

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

public void ScrollLeftTo (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);
member this.ScrollLeftTo : 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 ScrollLeftTo (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) , (跨元素轻扫的距离。 对于编程滚动,忽略。

swipeSpeed
Int32

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

withInertia
Boolean

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

timeout
Nullable<TimeSpan>

TimeSpan 失败之前等待的 。

适用于