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

用户界面自动化活动

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

移动设备连接

UiPath.MobileAutomation.Activities.MobileDeviceConnection

Establishes a connection to a mobile device and provides a scope for all subsequent activities.

项目兼容性

Windows - Legacy | Windows

配置

设计器面板
  • 选择连接详细信息- 选择要连接的设备和应用程序:
属性面板
常见
  • 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”,则系统在执行项目时不会捕获任何错误。

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

开发

  • 关闭类似选项卡- 设置为True时,仅允许连接中使用的设备类型的一个实例,并关闭任何其他实例。
  • 等待页面更新- 设置为True时,可以更快地显示活动结果,但会对整体性能产生负面影响。
  • “使用现有连接” - 如果设置为“True” ,仅当连接详细信息匹配时,Studio 才会重用移动设备管理器中的现有连接来执行活动。使用现有连接可以减少执行时间。
输入
  • Appium Url - The Appium server URL you want to use to connect to a mobile device. This field supports only strings and String variables.
  • Capabilities - A collection of <String, Argument> pairs that specify the capabilities of the device you are connected to. This field supports only Collection<String, Argument> variables.
  • “Http 标头” - <String, Argument>对的集合,用于表示要添加到默认 HTTP 请求的自定义 Http 标头。对于从移动设备管理器 (MDM) 打开的移动设备连接,此处创建的 Http 标头显示在活动内部的集合中。与可以在移动设备管理器中添加的 Http 标头相反,在此集合中,您可以使用变量作为 Http 标头的值。在此处了解有关自定义 Http 标头的更多信息。
  • Start Page - The start page you want to use for the mobile connection. This field supports only strings and String variables.

输入/输出连接

  • “输入连接” - 输入移动设备连接。
  • “输出连接” - 输出移动设备连接。

日志记录

  • 收集页面源代码- 指定是否要在执行活动后获取页面的源代码。正则表达式的值为NoneAfterActivity
  • “收集屏幕截图” - 指定是否要在活动执行后截取屏幕截图。正则表达式的值为NoneAfterActivity
  • “已启用日志记录” - 在活动执行期间启用或禁用日志记录。支持的值为TrueFalse
  • 日志记录文件夹路径- 输入要存储日志输出的路径。
  • “已启用视频录制” - 在执行期间启用或禁用视频录制。
  • 视频录制质量
    • 选择视频录制内容的质量:
    • 正常
    • 照片
  • “视频录制时间限制” - 输入要对执行进行视频录制的最大时间。
其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

选项

  • 关闭- 关闭连接。Null被视为Always
  • 项目兼容性
  • 配置

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新