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

用户界面自动化活动

上次更新日期 2025年8月27日

窗口操作

UiPath.UIAutomationNext.Activities.NWindowOperation

描述

Perform various operations on the specified window element.

此活动必须添加到“使用应用程序/浏览器”活动中。

如要在“使用应用程序/浏览器”活动之外使用此活动,您需要提供一个“输入元素”。

此活动可与对象存储库兼容。

项目兼容性

Windows | 跨平台

配置

  • Window - Select the window type for which to perform the operation.
    • Main application window or Input Element - Apply the operation to the window specified either by the parent Use Application/Browser activity or through the Input element property..
    • Specific application window - Apply the operation to the indicated windows.
  • Operation - Select the operation to be performed on the given window.
    • Close window - Close the selected window.
    • Hide window - Hide the selected window. This makes the window completely invisible.
    • Maximize window - Maximize the selected window.
    • Minimize window - Minimize the selected window.
    • Move window - Change the position and dimensions of the selected window.
    • Restore window - Restore the selected window to its original size and position.
    • Show window - Display and activate the selected window.
    • Bring window to foreground - Activate the selected window and bring it to the foreground.
  • Indicate target on screen - Available only for the Specific application window option, to indicate the window to use as target.
  • After the target has been indicated, manage the target by selecting the menu options button and choosing one of the following options:
    • Indicate target - Indicate the window again. In case the Descriptor is defined in Object Repository, you have to unlink from Object Repository it if you want to indicate a Descriptor only for the current activity.
    • 编辑目标 - 打开选择模式以配置目标。
    • 在对象存储库中显示 - 打开“对象存储库”面板,并选中“描述符”。
    • 取消与对象存储库的链接 - 取消描述符与对象存储库的链接。
    • Add to Object Repository - Add the current UI element to a library project, from where it can be reused throughout your automation process. This option is only displayed when the object has not yet been added to the Object Repository.
属性面板

输入/输出元素

  • 输入元素 - 用于执行活动的用户界面元素,存储在 UIElement 对象中。 此字段仅支持 UIElement 对象。 可以从其他用户界面自动化活动的 输出元素 属性字段获取此对象。
  • 输出元素 - 输出目标用户界面元素并将其存储在 UIElement 对象中,该对象可进一步用于通过其他活动定位同一元素。

选项

  • Healing Agent 模式- 根据流程或作业级别的监管或 Orchestrator 设置,配置此活动的 Healing Agent 行为。
    • 已禁用- 关闭此活动的 Healing Agent。
    • 继承作业设置- 在流程或作业级别应用在监管或 Orchestrator 中定义的设置。
    • “仅建议” - 允许 Healing Agent 提供有关如何修复正在运行的作业中的用户界面自动化问题的建议,但前提是监管或 Orchestrator 设置允许。
    • 与应用程序/浏览器相同- 从父级“使用应用程序/浏览器”活动继承配置。
  • “出错时继续” - 指定在活动引发错误时是否应继续自动化操作。 此字段仅支持 Boolean 值(TrueFalse)。 默认值为 False。 因此,如果该字段为空且活动引发错误,系统将停止执行项目。 如果该值设置为 True,则无论出现何种错误,系统都将继续执行项目。

计时

  • “在此之前延迟”- 上一个活动完成与此活动开始执行任何操作之间的延迟(以秒为单位)。默认值为 0.2 秒。在活动之间添加延迟可确保一个活动有足够的时间完成,然后再开始下一个活动。

  • 延迟 时间” - 此活动完成与下一个活动开始执行任何操作之间的延迟时间(以秒为单位)。 默认值为 0.3 秒。 在活动之间添加延迟可确保一个活动有足够的时间完成,然后再开始下一个活动。

  • 超时”- 指定最长等待时间(以秒为单位),如果超出该时间后活动并未执行,系统便会抛出错误。 默认值为 30 秒。

  • 描述
  • 项目兼容性
  • 配置

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。