IApp.ScrollUpTo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ScrollUpTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) |
向上捲動,直到畫面上顯示符合 |
ScrollUpTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) |
向上捲動,直到畫面上顯示符合 |
ScrollUpTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) |
向上捲動,直到畫面上顯示符合 |
ScrollUpTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) |
向上捲動,直到畫面上顯示符合 |
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)
參數
- strategy
- ScrollStrategy
捲動元素的策略。
- swipePercentage
- Double
從 0.0 撥動到 1.0 到 1.0) (元素之間的距離。 忽略程式設計捲動。
- swipeSpeed
- Int32
手勢的速度。 忽略程式設計捲動。
- withInertia
- Boolean
撥動是否應該造成慣性。 忽略程式設計捲動。
適用於
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 的進入點,指定要在螢幕上顯示的專案。
- strategy
- ScrollStrategy
捲動元素的策略。
- swipePercentage
- Double
從 0.0 撥動到 1.0 到 1.0) (元素之間的距離。 忽略程式設計捲動。
- swipeSpeed
- Int32
手勢的速度。 忽略程式設計捲動。
- withInertia
- Boolean
撥動是否應該造成慣性。 忽略程式設計捲動。
適用於
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
撥動是否應該造成慣性。 忽略程式設計捲動。
適用於
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
撥動是否應該造成慣性。 忽略程式設計捲動。