activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

用户界面自动化活动

上次更新日期 2026年3月9日

滑动

滑动操作将遍历列表中的多次滑动(直到MaxNumberOfSwiches ),直到找到指定的元素。如果未设置目标,则滑动操作将执行单次滑动,而不搜索特定元素。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

重载

重载描述
Swipe(IElementDescriptor, IElementDescriptor, SwipeDirection, int, MobileOptions.SwipeOptions)在指定容器内作为IElementDescriptor执行滑动操作,直到找到IElementDescriptor目标。 第一个参数指定容器,而第二个参数定义滑动操作的目标。
Swipe(IElementDescriptor, ObjectRepositoryTarget, SwipeDirection, int, MobileOptions.SwipeOptions)在指定容器内作为IElementDescriptor执行滑动操作,直到找到ObjectRepositoryTarget目标。 第一个参数指定容器,而第二个参数定义滑动操作的目标。
Swipe(IElementDescriptor, SelectorTarget, SwipeDirection, int, MobileOptions.SwipeOptions)在指定容器内作为IElementDescriptor执行滑动操作,直到找到SelectorTarget目标。 第一个参数指定容器,而第二个参数定义滑动操作的目标。
Swipe(ObjectRepositoryTarget, IElementDescriptor, SwipeDirection, int, MobileOptions.SwipeOptions)在指定容器内作为ObjectRepositoryTarget执行滑动操作,直到找到IElementDescriptor目标。 第一个参数指定容器,而第二个参数定义滑动操作的目标。
Swipe(ObjectRepositoryTarget, ObjectRepositoryTarget, SwipeDirection, int, MobileOptions.SwipeOptions)在指定容器内作为ObjectRepositoryTarget执行滑动操作,直到找到ObjectRepositoryTarget目标。 第一个参数指定容器,而第二个参数定义滑动操作的目标。
Swipe(ObjectRepositoryTarget, SelectorTarget, SwipeDirection, int, MobileOptions.SwipeOptions)在指定容器内作为ObjectRepositoryTarget执行滑动操作,直到找到SelectorTarget目标。 第一个参数指定容器,而第二个参数定义滑动操作的目标。
Swipe(SelectorTarget, IElementDescriptor, SwipeDirection, int, MobileOptions.SwipeOptions)在指定容器内作为SelectorTarget执行滑动操作,直到找到IElementDescriptor目标。 第一个参数指定容器,而第二个参数定义滑动操作的目标。
Swipe(SelectorTarget, ObjectRepositoryTarget, SwipeDirection, int, MobileOptions.SwipeOptions)在指定容器内作为SelectorTarget执行滑动操作,直到找到ObjectRepositoryTarget目标。 第一个参数指定容器,而第二个参数定义滑动操作的目标。
Swipe(SelectorTarget, SelectorTarget, SwipeDirection, int, MobileOptions.SwipeOptions)在指定容器内作为SelectorTarget执行滑动操作,直到找到SelectorTarget目标。 第一个参数指定容器,而第二个参数定义滑动操作的目标。

Swipe(IElementDescriptor, IElementDescriptor, SwipeDirection, int, MobileOptions.SwipeOptions)

执行从IElementDescriptorIElementDescriptor的滑动操作。

Swipe(
	    IElementDescriptor container,
	    IElementDescriptor target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)
Swipe(
	    IElementDescriptor container,
	    IElementDescriptor target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)

container IElementDescriptor :定义滑动操作容器的元素。

target IElementDescriptor :定义滑动操作目标的元素。

swipeDirection SwipeDirection (可选):滑动操作的方向。

maxNumberOfSwipes Int32 (可选):获得所需结果的最大滑动次数。

options MobileOptions.SwipeOptions :为滑动操作指定MobileOptions.SwipeOptions 。默认值为 null。

Swipe(IElementDescriptor, ObjectRepositoryTarget, SwipeDirection, int, MobileOptions.SwipeOptions)

执行从IElementDescriptorObjectRepositoryTarget的滑动操作。

Swipe(
	    IElementDescriptor container,
	    ObjectRepositoryTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)
Swipe(
	    IElementDescriptor container,
	    ObjectRepositoryTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)

container IElementDescriptor :定义滑动操作容器的元素。

target ObjectRepositoryTarget :定义滑动操作目标的元素。

swipeDirection SwipeDirection (可选):滑动操作的方向。

maxNumberOfSwipes Int32 (可选):获得所需结果的最大滑动次数。

options MobileOptions.SwipeOptions :为滑动操作指定MobileOptions.SwipeOptions 。默认值为 null。

Swipe(IElementDescriptor, SelectorTarget, SwipeDirection, int, MobileOptions.SwipeOptions)

执行从IElementDescriptorSelectorTarget的滑动操作。

Swipe(
	    IElementDescriptor container,
	    SelectorTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)
Swipe(
	    IElementDescriptor container,
	    SelectorTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)

container IElementDescriptor :定义滑动操作容器的元素。

target选取器目标(选择器目标) :定义滑动操作目标的元素。

swipeDirection SwipeDirection (可选):滑动操作的方向。

maxNumberOfSwipes Int32 (可选):获得所需结果的最大滑动次数。

options MobileOptions.SwipeOptions :为滑动操作指定MobileOptions.SwipeOptions 。默认值为 null。

Swipe(ObjectRepositoryTarget, IElementDescriptor, SwipeDirection, int, MobileOptions.SwipeOptions)

执行从ObjectRepositoryTargetIElementDescriptor的滑动操作。

Swipe(
	    ObjectRepositoryTarget container,
	    IElementDescriptor target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)
Swipe(
	    ObjectRepositoryTarget container,
	    IElementDescriptor target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)

container ObjectRepositoryTarget :定义滑动操作的容器的元素。

target IElementDescriptor :定义滑动操作目标的元素。

swipeDirection SwipeDirection (可选):滑动操作的方向。

maxNumberOfSwipes Int32 (可选):获得所需结果的最大滑动次数。

options MobileOptions.SwipeOptions :为滑动操作指定MobileOptions.SwipeOptions 。默认值为 null。

Swipe(ObjectRepositoryTarget, ObjectRepositoryTarget, SwipeDirection, int, MobileOptions.SwipeOptions)

执行从ObjectRepositoryTargetObjectRepositoryTarget的滑动操作。

Swipe(
	    ObjectRepositoryTarget container,
	    ObjectRepositoryTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)
Swipe(
	    ObjectRepositoryTarget container,
	    ObjectRepositoryTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)

container ObjectRepositoryTarget :定义滑动操作的容器的元素。

target ObjectRepositoryTarget :定义滑动操作目标的元素。

swipeDirection SwipeDirection (可选):滑动操作的方向。

maxNumberOfSwipes Int32 (可选):获得所需结果的最大滑动次数。

options MobileOptions.SwipeOptions :为滑动操作指定MobileOptions.SwipeOptions 。默认值为 null。

Swipe(ObjectRepositoryTarget, SelectorTarget, SwipeDirection, int, MobileOptions.SwipeOptions)

执行从ObjectRepositoryTargetSelectorTarget的滑动操作。

Swipe(
	    ObjectRepositoryTarget container,
	    SelectorTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)
Swipe(
	    ObjectRepositoryTarget container,
	    SelectorTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)

container ObjectRepositoryTarget :定义滑动操作的容器的元素。

target选取器目标(选择器目标) :定义滑动操作目标的元素。

swipeDirection SwipeDirection (可选):滑动操作的方向。

maxNumberOfSwipes Int32 (可选):获得所需结果的最大滑动次数。

options MobileOptions.SwipeOptions :为滑动操作指定MobileOptions.SwipeOptions 。默认值为 null。

Swipe(SelectorTarget, IElementDescriptor, SwipeDirection, int, MobileOptions.SwipeOptions)

执行从SelectorTargetIElementDescriptor的滑动操作。

Swipe(
	    SelectorTarget container,
	    IElementDescriptor target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)
Swipe(
	    SelectorTarget container,
	    IElementDescriptor target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)

container选取器目标:定义滑动操作的容器的元素。

target IElementDescriptor :定义滑动操作目标的元素。

swipeDirection SwipeDirection (可选):滑动操作的方向。

maxNumberOfSwipes Int32 (可选):获得所需结果的最大滑动次数。

options MobileOptions.SwipeOptions :为滑动操作指定MobileOptions.SwipeOptions 。默认值为 null。

Swipe(SelectorTarget, ObjectRepositoryTarget, SwipeDirection, int, MobileOptions.SwipeOptions)

执行从SelectorTargetObjectRepositoryTarget的滑动操作。

Swipe(
	    SelectorTarget container,
	    ObjectRepositoryTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)
Swipe(
	    SelectorTarget container,
	    ObjectRepositoryTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)

container选取器目标:定义滑动操作的容器的元素。

target ObjectRepositoryTarget :定义滑动操作目标的元素。

swipeDirection SwipeDirection (可选):滑动操作的方向。

maxNumberOfSwipes Int32 (可选):获得所需结果的最大滑动次数。

options MobileOptions.SwipeOptions :为滑动操作指定MobileOptions.SwipeOptions 。默认值为 null。

Swipe(SelectorTarget, SelectorTarget, SwipeDirection, int, MobileOptions.SwipeOptions)

执行从SelectorTargetSelectorTarget的滑动操作。

Swipe(
	    SelectorTarget container,
	    SelectorTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)
Swipe(
	    SelectorTarget container,
	    SelectorTarget target,
	    SwipeDirection swipeDirection = SwipeDirection.Down,
	    int maxNumberOfSwipes = 10,
	    MobileOptions. SwipeOptions options = null
)

container选取器目标:定义滑动操作的容器的元素。

target选取器目标(选择器目标) :定义滑动操作目标的元素。

swipeDirection SwipeDirection (可选):滑动操作的方向。

maxNumberOfSwipes Int32 (可选):获得所需结果的最大滑动次数。

options MobileOptions.SwipeOptions :为滑动操作指定MobileOptions.SwipeOptions 。默认值为 null。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新