AndroidApp.DragAndDrop 方法

定义

重载

DragAndDrop(String, String, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action)

对某个项目执行长时间触摸,然后将该项拖动到第二个项目并放置它

DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action)

> 对某个项目执行长时间触摸,然后将该项拖动到第二个项目并放置它

DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>)

> 对某个项目执行长时间触摸,然后将该项拖动到第二个项目并放置它

DragAndDrop(String, String)

> 对某个项目执行长时间触摸,然后将该项拖动到第二个项目并放置它

DragAndDrop(String, String, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action)

对某个项目执行长时间触摸,然后将该项拖动到第二个项目并放置它

public void DragAndDrop (string fromMarked, string toMarked, Xamarin.UITest.Android.DropLocation placement = Xamarin.UITest.Android.DropLocation.OnTop, Nullable<TimeSpan> holdTime = null, Nullable<TimeSpan> hangTime = null, int steps = 1, Action afterStepAction = null);
member this.DragAndDrop : string * string * Xamarin.UITest.Android.DropLocation * Nullable<TimeSpan> * Nullable<TimeSpan> * int * Action -> unit
Public Sub DragAndDrop (fromMarked As String, toMarked As String, Optional placement As DropLocation = Xamarin.UITest.Android.DropLocation.OnTop, Optional holdTime As Nullable(Of TimeSpan) = null, Optional hangTime As Nullable(Of TimeSpan) = null, Optional steps As Integer = 1, Optional afterStepAction As Action = null)

参数

fromMarked
String

标记了要拖动的项选择器。 有关详细信息,请参阅Marked(String)

toMarked
String

为要删除的项的位置标记了选择器。 有关详细信息,请参阅Marked(String)

placement
DropLocation

放置 (位于顶部、上方、下方、左侧、右侧) 相对于要查询的

holdTime
Nullable<TimeSpan>

保留 from 查询的时间

hangTime
Nullable<TimeSpan>

保留要查询的 上方的时间

steps
Int32

拖动项目所需的步骤数,在拖动速度较慢时增加

afterStepAction
Action

每个步骤后要执行的操作

适用于

DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action)

> 对某个项目执行长时间触摸,然后将该项拖动到第二个项目并放置它

public void DragAndDrop (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> from, Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> to, Xamarin.UITest.Android.DropLocation placement = Xamarin.UITest.Android.DropLocation.OnTop, Nullable<TimeSpan> holdTime = null, Nullable<TimeSpan> hangTime = null, int steps = 1, Action afterStepAction = null);
member this.DragAndDrop : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Xamarin.UITest.Android.DropLocation * Nullable<TimeSpan> * Nullable<TimeSpan> * int * Action -> unit
Public Sub DragAndDrop (from As Func(Of AppQuery, AppQuery), to As Func(Of AppQuery, AppQuery), Optional placement As DropLocation = Xamarin.UITest.Android.DropLocation.OnTop, Optional holdTime As Nullable(Of TimeSpan) = null, Optional hangTime As Nullable(Of TimeSpan) = null, Optional steps As Integer = 1, Optional afterStepAction As Action = null)

参数

from
Func<AppQuery,AppQuery>

要拖动的项的查询

to
Func<AppQuery,AppQuery>

要删除的项的位置的查询

placement
DropLocation

放置 (位于顶部、上方、下方、左侧、右侧) 相对于要查询的

holdTime
Nullable<TimeSpan>

保留 from 查询的时间

hangTime
Nullable<TimeSpan>

保留要查询的 上方的时间

steps
Int32

拖动项目所需的步骤数,在拖动速度较慢时增加

afterStepAction
Action

每个步骤后要执行的操作

适用于

DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>)

> 对某个项目执行长时间触摸,然后将该项拖动到第二个项目并放置它

public void DragAndDrop (Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> from, Func<Xamarin.UITest.Queries.AppQuery,Xamarin.UITest.Queries.AppQuery> to);
abstract member DragAndDrop : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> -> unit
override this.DragAndDrop : Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> * Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery> -> unit
Public Sub DragAndDrop (from As Func(Of AppQuery, AppQuery), to As Func(Of AppQuery, AppQuery))

参数

from
Func<AppQuery,AppQuery>

要拖动的项的查询

to
Func<AppQuery,AppQuery>

要删除的项的位置的查询

实现

适用于

DragAndDrop(String, String)

> 对某个项目执行长时间触摸,然后将该项拖动到第二个项目并放置它

public void DragAndDrop (string from, string to);
abstract member DragAndDrop : string * string -> unit
override this.DragAndDrop : string * string -> unit
Public Sub DragAndDrop (from As String, to As String)

参数

from
String

已标记 from 元素的选择器。

to
String

标记的 to 元素选择器。

实现

适用于