iOSApp.SwipeLeftToRight 方法

定义

重载

SwipeLeftToRight(Double, Int32, Boolean)

执行从左到右轻扫手势。

SwipeLeftToRight(Func<AppQuery,AppQuery>, Double, Int32, Boolean)

对匹配元素执行从左到右轻扫手势。 如果多个元素匹配,将使用第一个元素。

SwipeLeftToRight(Func<AppQuery,AppWebQuery>, Double, Int32, Boolean)

对匹配元素执行从左到右轻扫手势。 如果多个元素匹配,将使用第一个元素。

SwipeLeftToRight(String, Double, Int32, Boolean)

对匹配元素执行从左到右轻扫手势。 如果多个元素匹配,将使用第一个元素。

SwipeLeftToRight(Double, Int32, Boolean)

执行从左到右轻扫手势。

public void SwipeLeftToRight (double swipePercentage = 0.67, int swipeSpeed = 500, bool withInertia = true);
abstract member SwipeLeftToRight : double * int * bool -> unit
override this.SwipeLeftToRight : double * int * bool -> unit
Public Sub SwipeLeftToRight (Optional swipePercentage As Double = 0.67, Optional swipeSpeed As Integer = 500, Optional withInertia As Boolean = true)

参数

swipePercentage
Double

从 0.0 到 1.0) 在屏幕中轻扫 (的距离。

swipeSpeed
Int32

手势的速度。

withInertia
Boolean

轻扫是否应导致惯性。

实现

适用于

SwipeLeftToRight(Func<AppQuery,AppQuery>, Double, Int32, Boolean)

对匹配元素执行从左到右轻扫手势。 如果多个元素匹配,将使用第一个元素。

public void SwipeLeftToRight (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> query, double swipePercentage = 0.67, int swipeSpeed = 500, bool withInertia = true);
abstract member SwipeLeftToRight : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * double * int * bool -> unit
override this.SwipeLeftToRight : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * double * int * bool -> unit
Public Sub SwipeLeftToRight (query As Func(Of AppQuery, AppQuery), Optional swipePercentage As Double = 0.67, Optional swipeSpeed As Integer = 500, Optional withInertia As Boolean = true)

参数

query
Func<AppQuery,AppQuery>

Fluent API 用于指定 元素的入口点。

swipePercentage
Double

从 0.0 到 1.0) , (跨元素轻扫的距离。

swipeSpeed
Int32

手势的速度。

withInertia
Boolean

轻扫是否应导致惯性。

实现

适用于

SwipeLeftToRight(Func<AppQuery,AppWebQuery>, Double, Int32, Boolean)

对匹配元素执行从左到右轻扫手势。 如果多个元素匹配,将使用第一个元素。

public void SwipeLeftToRight (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppWebQuery> query, double swipePercentage = 0.67, int swipeSpeed = 500, bool withInertia = true);
abstract member SwipeLeftToRight : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery> * double * int * bool -> unit
override this.SwipeLeftToRight : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery> * double * int * bool -> unit
Public Sub SwipeLeftToRight (query As Func(Of AppQuery, AppWebQuery), Optional swipePercentage As Double = 0.67, Optional swipeSpeed As Integer = 500, Optional withInertia As Boolean = true)

参数

query
Func<AppQuery,AppWebQuery>

Fluent API 用于指定 元素的入口点。

swipePercentage
Double

从 0.0 到 1.0) , (跨元素轻扫的距离。

swipeSpeed
Int32

手势的速度。

withInertia
Boolean

轻扫是否应导致惯性。

实现

适用于

SwipeLeftToRight(String, Double, Int32, Boolean)

对匹配元素执行从左到右轻扫手势。 如果多个元素匹配,将使用第一个元素。

public void SwipeLeftToRight (string marked, double swipePercentage = 0.67, int swipeSpeed = 500, bool withInertia = true);
abstract member SwipeLeftToRight : string * double * int * bool -> unit
override this.SwipeLeftToRight : string * double * int * bool -> unit
Public Sub SwipeLeftToRight (marked As String, Optional swipePercentage As Double = 0.67, Optional swipeSpeed As Integer = 500, Optional withInertia As Boolean = true)

参数

marked
String

要匹配的标记选择器。 有关详细信息,请参阅Marked(String)

swipePercentage
Double

从 0.0 到 1.0) , (跨元素轻扫的距离。

swipeSpeed
Int32

手势的速度。

withInertia
Boolean

轻扫是否应导致惯性。

实现

适用于