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

StudioX user guide

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

编辑目标

If the target is not identified correctly during project execution, you can edit the target and its anchors after you have indicated it by selecting docs image > Edit Target in the body of the activity. This opens the selection mode with the target and any identified anchors highlighted. A menu is displayed when you hover the mouse over a target or anchor.

文档图像

  • To remove a target or an anchor, hover it, and then click Delete 文档图像 in the hover menu. If you remove a target, the first element you click is added as the new target.

  • To add an anchor for a target, click the element to add as an anchor. Depending on the settings of your project, you may need to click Add Anchor 文档图像 in the hover menu of the target first. You can add up to three anchors for each target.

  • To edit a target or an anchor, hover it, and then click Settings docs image in the hover menu. The properties of the methods used for detecting the element can be edited from the Advanced Settings section of the Selection Options window:

    • Selector / Fuzzy Selector - Edit the selector using the corresponding text box. To copy the selector for pasting in another element or for editing in the UI Explorer, click Copy docs image next to it.
  • You can use variables in attribute values. The variables must be surrounded in double curly brackets, for example <wnd name='da{{var1}}'/> adds the value of var1 to the selector. The default value of the variable is used at design time. For information on how to create variables for selectors, see Creating Variables for Use in Selectors.

    • For Fuzzy Selectors, you can change the Selector Accuracy level by dragging the corresponding slider from 0.4 to 1. This measurement expresses the level of similarity between the attribute you are searching for and the one to be found. To find results with a higher similarity, increase the value. The default value is 0.7. You can find more information about selectors in the Studio guide.
    • Image - Change the Image Accuracy level by dragging the corresponding slider from 0.4 to 1. This measurement expresses the level of similarity between the image you are searching for and the one to be found. In situations when the image to be found can be slightly different than the one you are searching for, you can lower the accuracy. The default value is 0.8.

    • 通过清除/选中方法名称旁边的复选框来禁用/启用方法。

    • Verify how unique a method is by clicking Show all matches 文档图像 next to it. This checks all the elements in the window and highlights all that have similarities with the currently selected element in yellow.

    • Click Apply to save the changes, and then click Validate if you want to validate the selection. To save the selection, click Confirm.

      文档图像

验证您的选择

通过验证,您可以使用所有选定的方法和锚点检查目标,从而检查当前选择在识别目标方面的效果如何。验证结果将显示在“选择选项”窗口的顶部。如果需要调整,屏幕上会显示一条消息,其中包含有关如何改进选择的信息。

每种方法的性能显示在“选择选项”窗口的“高级设置”部分,使用以下图标之一:

docs image 该方法是第一个成功识别元素的方法。

docs image 此方法已成功识别元素。

docs image 该方法无法识别元素,因为发现了太多重复项。

docs image 此方法未能识别元素。

创建选取器中使用的变量

You can create variables from the Use Application/Browser activity and most other container activities. The scope of the variable is within the activity where it is created.

要创建选取器中使用的变量,请执行以下操作:

  1. In the title bar of a container activity, select Settings 文档图像 > Value Mappings.
  2. 在“值映射”窗口中,单击“添加”,然后提供以下信息:
    • 名称 - 输入变量的名称。名称应遵循命名约定。

    • Value - Click Plus docs image on the right side of the field, and then use one of the options in the menu to indicate the value to use at runtime. For example, you can enter text, select a cell from an Excel file, or select a previously saved for later text value. The variable type is string.

      文档图像

After a variable is created, you can add it to selectors in activities added inside the container where it was created. For more information, see Editing a Target. The variable can also be selected from the Plus docs image menu of compatible activity fields inside the container.

有关如何在选取器中使用变量的示例,请观看以下视频。

  • 验证您的选择
  • 创建选取器中使用的变量

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新