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

StudioX user guide

上次更新日期 2026年4月30日

指定目标

在大多数情况下,定义目标所需要做的只是在屏幕上指向该目标并单击。应用程序会检测识别目标和任何合适锚点所需的方法,并自动生成其属性。

要指定目标:

  1. Click Indicate target on screen inside an application/web activity. The target selection mode is opened. As you start moving the mouse, all the recognized UI elements are highlighted. The Selection Options window appears on the screen with information about the target identification status and additional options.

  2. 将鼠标指针放在所需的元素上,确保将其突出显示,然后单击。

    • 如果标识了目标元素,其将突出显示为绿色。
      • 如果还自动选择了锚点,则该锚点将以蓝色突出显示。
      • 如果未自动选择锚点,则可以单击附近有助于识别目标的元素(例如标签或标题),将其添加为锚点。
      • To add an additional anchor, hover the target element, select Add Anchor 文档图像 in the hover menu, and then click the element to add as anchor.
    • 如果由于屏幕上存在其他过多的相似元素而无法识别目标,则该元素将以红色突出显示,而相似元素将以黄色突出显示为重复项。单击屏幕上的另一个元素,将其添加为锚点。
      • 如果选择有效,则目标和锚点分别以绿色和蓝色突出显示。
      • If the target and anchor are highlighted in red, the selection is still invalid. Hover the element you indicated as target and click Add Anchor 文档图像 in the hover menu to add a second anchor. Repeat this to add a third anchor if necessary.
  3. To complete the target identification, click Confirm in the Selection Options window. You can also confirm by clicking docs image in the target hover menu or by pressing Enter on your keyboard. The target is configured and the activity displays a screenshot of the target and any anchors that were added.

    文档图像

“选择选项”窗口中提供了其他选项,可帮助您指定元素:

  • If an element is not visible on your screen or the application is not in the correct state, you can press F2 on your keyboard to pause element selection while you set the application to the correct state. This is useful for elements that require an additional action to appear on screen, or disappear easily from it. For example, if you want to indicate specific elements in drop-down or hover menus, you can pause selection while you click the drop-down or move the mouse pointer on the hover menu to activate them.

  • 切换到“图像选择模式”。在键盘上按 F3 键可以更改为“仅基于图像的标识”,然后使用鼠标从应用程序窗口中选择一个可见区域,以用作目标或锚点。

  • 更改用户界面框架。默认情况下,专有框架用于访问目标应用程序窗口。如果未检测到目标,请尝试通过按键盘上的 F4 来更改框架。对于较旧的应用程序,请选择 AA(主动式辅助)。对于较新的应用程序,请选择 UIA(Microsoft 用户界面自动化)。选择目标后,更改用户界面框架的选项不再可用。

    文档图像

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新