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

用户界面自动化活动

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

滑动

UiPath.MobileAutomation.Activities.Swipe

描述

该活动以两个元素为目标: “容器”“目标” 。将容器设置为滑动操作的指定区域(通常是列表,但可以是任何可滚动元素)。将目标指定为您正在搜索的元素。滑动操作将遍历列表中的多次滑动(直到MaxNumberOfSwiches ),直到找到指定的元素。如果未设置目标,则滑动操作将执行单次滑动,而不搜索特定元素。

配置

设计器面板
  • Target - Default is set to (null). Once the target is indicated, all properties regarding the element that was indicated are displayed. You can further create variables out of the displayed attributes of an indicated target.
    • CV 文本 - Computer Vision 模型在目标用户界面元素中识别的文本。
    • CV 类型 - 使用 Computer Vision 识别的控件类型。
    备注:

    我们建议在指定目标后保持 CV 控件类型不变。否则,由于您更改了控件类型,Computer Vision 模型可能无法在运行时识别目标。

    • Fuzzy selector - The parameters for the fuzzy selector.
    • SearchSteps - Select the methods used to identify targets and anchors from the dropdown list.
    • 精确选取器- 为指定元素生成的选取器。要了解如何根据目标选取器的属性创建变量,请查看根据选取器属性创建变量教程。
  • 容器- 要在其中执行滑动操作的目标用户界面容器(通常是列表,但可以是任何可滚动元素)。默认设置为(null) 。指定目标容器后,将显示与指定元素相关的所有属性。
    • CV 文本 - Computer Vision 模型在目标用户界面元素中识别的文本。
    • CV 类型 - 使用 Computer Vision 识别的控件类型。
    备注:

    我们建议在指定目标后保持 CV 控件类型不变。否则,由于您更改了控件类型,Computer Vision 模型可能无法在运行时识别目标。

    • Fuzzy selector - The parameters for the fuzzy selector.
    • SearchSteps - Select the methods used to identify targets and anchors from the dropdown list.
    • Strict selector - The selector that is generated for the indicated element.
    • 点击偏移量(针对目标容器)- 设置目标元素的参数。当您启用“目标”时,会触发此属性。
      • Anchoring point - Select the default positioning of the anchor point.
      • CoordinateType - Choose how to set the target coordinates. You can select one of the following:
        • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
        • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
      • Offset X - Horizontal displacement of the targeted area selected in the CoordinateType field.
      • Offset Y - Vertical displacement of the targeted area selected in the CoordinateType field.
属性面板
常见
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

    备注:

    如果“Try Catch 异常处理”中包含该活动且“出错时继续”属性的值为“True”,则系统在执行项目时不会捕获任何错误。

  • DelayAfter - Delay time (in seconds) after executing the activity. The default value is 0.3 seconds.

  • DelayBefore - Delay time (in seconds) before the activity begins performing any operations. The default value is 0.2 seconds.

  • “显示名称”- 活动的显示名称。

  • Timeout - specifies the amount of time (in seconds) to wait for a specified element to be found before an error is thrown. The default value is 30 seconds.

输入
  • Target - Default is set to (null). Once the target is indicated, all properties regarding the element that was indicated are displayed. You can further create variables out of the displayed attributes of an indicated target.
    • CV 文本 - Computer Vision 模型在目标用户界面元素中识别的文本。
    • CV 类型 - 使用 Computer Vision 识别的控件类型。
    备注:

    我们建议在指定目标后保持 CV 控件类型不变。否则,由于您更改了控件类型,Computer Vision 模型可能无法在运行时识别目标。

    • Fuzzy selector - The parameters for the fuzzy selector.
    • SearchSteps - Select the methods used to identify targets and anchors from the dropdown list.
    • 精确选取器- 为指定元素生成的选取器。要了解如何根据目标选取器的属性创建变量,请查看根据选取器属性创建变量教程。
  • MaxNumberOfSwipes - The maximum number of swipes that are attempted on the specified device. By default, this field is set to 10. This field supports only Int32 variables.
  • SwipeDirection - Specifies the direction in which you want to perform the swipe. The following options are available:
    • 左侧
    • 右侧
  • Tap offset (Optional) - Set the parameters of your target element. This property is triggered when you enable the Target.
    • Anchoring point - Select the default positioning of the anchor point.
    • CoordinateType - Choose how to set the target coordinates. You can select one of the following:
      • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
      • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
    • Offset X - Horizontal displacement of the targeted area selected in the CoordinateType field.
    • Offset Y - Vertical displacement of the targeted area selected in the CoordinateType field.
其他
  • 容器- 要在其中执行滑动操作的目标用户界面容器(通常是列表,但可以是任何可滚动元素)。默认设置为(null) 。指定目标容器后,将显示与指定元素相关的所有属性。
    • CV 文本 - Computer Vision 模型在目标用户界面元素中识别的文本。
    • CV 类型 - 使用 Computer Vision 识别的控件类型。
    备注:

    我们建议在指定目标后保持 CV 控件类型不变。否则,由于您更改了控件类型,Computer Vision 模型可能无法在运行时识别目标。

    • Fuzzy selector - The parameters for the fuzzy selector.
    • SearchSteps - Select the methods used to identify targets and anchors from the dropdown list.
    • Strict selector - The selector that is generated for the indicated element.
    • 点击偏移量(针对目标容器)- 设置目标元素的参数。当您启用“目标”时,会触发此属性。
      • Anchoring point - Select the default positioning of the anchor point.
      • CoordinateType - Choose how to set the target coordinates. You can select one of the following:
        • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
        • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
      • Offset X - Horizontal displacement of the targeted area selected in the CoordinateType field.
      • Offset Y - Vertical displacement of the targeted area selected in the CoordinateType field.
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
  • 描述
  • 配置

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新