IApp.ScrollDownTo 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ScrollDownTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) |
向下滚动,直到屏幕上显示与 匹配 |
ScrollDownTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) |
向下滚动,直到屏幕上显示与 匹配 |
ScrollDownTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) |
向下滚动,直到屏幕上显示与 匹配 |
ScrollDownTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) |
向下滚动,直到屏幕上显示与 匹配 |
ScrollDownTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)
向下滚动,直到屏幕上显示与 匹配 toQuery
的元素。
public void ScrollDownTo (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 ScrollDownTo : 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 ScrollDownTo (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)
参数
- strategy
- ScrollStrategy
滚动元素的策略。
- swipePercentage
- Double
从 0.0 到 1.0) , (跨元素轻扫的距离。 对于编程滚动,忽略。
- swipeSpeed
- Int32
手势的速度。 对于编程滚动,忽略。
- withInertia
- Boolean
轻扫是否应导致惯性。 对于编程滚动,忽略。
适用于
ScrollDownTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)
向下滚动,直到屏幕上显示与 匹配 toQuery
的元素。
public void ScrollDownTo (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 ScrollDownTo : 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 ScrollDownTo (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 的入口点,用于指定要显示屏幕的元素。
- strategy
- ScrollStrategy
滚动元素的策略。
- swipePercentage
- Double
从 0.0 到 1.0) , (跨元素轻扫的距离。 对于编程滚动,忽略。
- swipeSpeed
- Int32
手势的速度。 对于编程滚动,忽略。
- withInertia
- Boolean
轻扫是否应导致惯性。 对于编程滚动,忽略。
适用于
ScrollDownTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)
向下滚动,直到屏幕上显示与 匹配 toMarked
的元素。
public void ScrollDownTo (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 ScrollDownTo : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery> * string * Xamarin.UITest.ScrollStrategy * double * int * bool * Nullable<TimeSpan> -> unit
Public Sub ScrollDownTo (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
轻扫是否应导致惯性。 对于编程滚动,忽略。
适用于
ScrollDownTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)
向下滚动,直到屏幕上显示与 匹配 toMarked
的元素。
public void ScrollDownTo (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 ScrollDownTo : string * string * Xamarin.UITest.ScrollStrategy * double * int * bool * Nullable<TimeSpan> -> unit
Public Sub ScrollDownTo (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
轻扫是否应导致惯性。 对于编程滚动,忽略。