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

用户界面自动化活动

上次更新日期 2025年11月17日

高级选取器编辑器

重新设计的“选择帮助程序” 中集成了 高级选取器编辑器, 改善了 Studio 桌面版和 Studio Web 中的选取器配置体验。

它提供了一个直观的界面,用于配置单个选取器,并结合了精确选取器和模糊选取器的功能,以提供更大的透明度,更好地控制选取器的创建和修改。

在指示或编辑用户界面元素时,选择助手会加载目标元素信息,并通过不同部分显示该信息,以实现以下目的:

  • 目标
  • 锚点 (最多 3 个锚点)
  • 窗口选取器
docs image

指定元素后,系统会使用默认的定位方法为每种技术自动生成“选取器”和“自动锚点”(如可能)。

每个目标/锚点都可以展开并显示可用的定位方法,以及每种方法的切换开关:

  • 选取器
  • Computer Vision
  • 图像
  • Semantic (preview)

搜索该目标时为选取器显示的名称公开了使用的匹配策略:

  • 查找与上一个精确选取器相对应的匹配项。它使用精确匹配方法。此方法可确保精确识别元素,但如果这些属性动态更改或用户界面缺少稳定的标识符,则可能会失败。
  • 查找对应于上一个 模糊选取器的 所有匹配项 。此选项会有意生成多个匹配项。该功能旨在与锚点一起使用以优化选择,使其更能应对微小的用户界面更改。

生成选取器时,系统会自动选择最合适的搜索策略,但您可以通过选取器编辑器更改该策略。

这 2 种类型的选取器中的任何一种都可以使用从“选择助手” 中启动的“选取器编辑器” 进行编辑。

“选取器编辑器”的初始基本视图可用于快速编辑,从而:

  • Change the search strategy: Find one match or Find all matches
  • Add/remove attributes for selected tag
  • Change the attribute matching type: strict, regex, fuzzy (with the attribute-level accuracy)
  • Edit the query values for each selected attribute.

    The matching status for each attribute is displayed next to the query value, with details about the matching score of the query value with the live value.

  • 对于查找所有匹配项搜索策略,请按选取器准确性和/或文本添加其他筛选
docs image

You can still edit the selection definition in the raw format used previously by switching from Attributes view to Selector view.

docs image

Filtering of the target matches with defined anchor(s) is enabled by default, but if you turn off the Enable Anchors toggle, you can visualize all the matches for the selector definition and navigate through these matches that are highlighted on the screen.

高级编辑器提供选取器编辑的完整功能,其中包括:

  • 上级视图- 显示所选元素在用户界面层次结构中的上级。

    您可以从“上级视图”中添加/删除标签类型,以使选取器更可靠。

  • Live values - adds a new column to show live values for the attributes along with the query values, so that you can decide on the proper values to include in the selector definition.
docs image

此页面有帮助吗?

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