活动
最新
False
横幅背景图像
用户界面自动化活动
上次更新日期 2024年4月26日

获取子项

检索指定目标的子项。

此 API 必须在“打开” 或“附加”之后添加。

定义

命名空间:UiPath.UIAutomationNext.API.Models

程序集:UiPath.UIAutomationNext.API.Models(在 UiPath.UIAutomationNext.API.Models dll 中)

重载

重载描述
GetChildren(String, GetChildrenOptions)检索指定目标的子元素,这些目标由对象存储库中的字符串及其他配置标识。
GetChildren(RuntimeTarget, GetChildrenOptions)检索由对象存储库元素的运行时实例和其他配置标识的指定目标的子元素。
GetChildren(TargetAnchorableModel, GetChildrenOptions)检索由“ TargetAnchorableModel ”对象以及其他配置标识的指定目标的子项。
GetChildren(IElementDescriptor, GetChildrenOptions)检索指定目标的子元素,这些目标由对象存储库中的元素描述符以及其他配置标识。
GetChildren(IElementDescriptor, String, Boolean, Boolean, Double)如果要执行递归搜索或检查根可见性,则检索指定目标的子项,由对象存储库中元素的描述符标识,同时指定选取器筛选器的名称和超时时间。
GetChildren(String, String, Boolean, Boolean, Double)检索指定目标的子项,由对象存储库中的字符串标识,同时指定选取器筛选器的名称和超时 (如果要执行递归搜索或检查根的可见性)。

GetChildren(String, GetChildrenOptions)

检索指定目标的子元素,这些目标由对象存储库中的字符串及其他配置标识。

GetChildren(
    string target,
    GetChildrenOptions getChildrenOptions)GetChildren(
    string target,
    GetChildrenOptions getChildrenOptions)
target String
要从中检索子元素的目标元素,由对象存储库中的字符串标识。
getChildrenOptions GetChildrenOptions
用于自定义子元素检索的其他选项。 您可以选择自定义:
  • SelectorFilter - 选取器筛选器的名称。
  • Timeout - 超时(以秒为单位)。
  • Recursive - 如果为 True,则对所有子项执行递归搜索。
  • CheckRootVisibility - 如果为 True,则检查所有子项的根可见性。

GetChildren(RuntimeTarget, GetChildrenOptions)

检索由对象存储库元素的运行时实例和其他配置标识的指定目标的子元素。

GetChildren(
    RuntimeTarget target,
    GetChildrenOptions getChildrenOptions)GetChildren(
    RuntimeTarget target,
    GetChildrenOptions getChildrenOptions)
target RuntimeTarget
要从中检索子元素的目标元素,由对象存储库元素的运行时实例标识。
getChildrenOptions GetChildrenOptions
用于自定义子元素检索的其他选项。 您可以选择自定义:
  • SelectorFilter - 选取器筛选器的名称。
  • Timeout - 超时(以秒为单位)。
  • Recursive - 如果为 True,则对所有子项执行递归搜索。
  • CheckRootVisibility - 如果为 True,则检查所有子项的根可见性。

GetChildren(TargetAnchorableModel, GetChildrenOptions)

检索由“ TargetAnchorableModel ”对象以及其他配置标识的指定目标的子项。
GetChildren(
    TargetAnchorableModel target,
    GetChildrenOptions getChildrenOptions)GetChildren(
    TargetAnchorableModel target,
    GetChildrenOptions getChildrenOptions)
target TargetAnchorableModel
要从中检索子元素的目标元素,由TargetAnchorableModel对象标识。
getChildrenOptions GetChildrenOptions
用于自定义子元素检索的其他选项。 您可以选择自定义:
  • SelectorFilter - 选取器筛选器的名称。
  • Timeout - 超时(以秒为单位)。
  • Recursive - 如果为 True,则对所有子项执行递归搜索。
  • CheckRootVisibility - 如果为 True,则检查所有子项的根可见性。

GetChildren(IElementDescriptor, GetChildrenOptions)

检索指定目标的子元素,这些目标由对象存储库中的元素描述符以及其他配置标识。

GetChildren(
    IElementDescriptor elementDescriptor,
    GetChildrenOptions getChildrenOptions)GetChildren(
    IElementDescriptor elementDescriptor,
    GetChildrenOptions getChildrenOptions)
elementDescriptor IElementDescriptor
要从中检索子元素的元素,由对象存储库中用户界面元素的描述符标识。
getChildrenOptions GetChildrenOptions
用于自定义子元素检索的其他选项。 您可以选择自定义:
  • SelectorFilter - 选取器筛选器的名称。
  • Timeout - 超时(以秒为单位)。
  • Recursive - 如果为 True,则对所有子项执行递归搜索。
  • CheckRootVisibility - 如果为 True,则检查所有子项的根可见性。

GetChildren(IElementDescriptor, String, Boolean, Boolean, Double)

如果要执行递归搜索或检查根可见性,则检索指定目标的子项,由对象存储库中元素的描述符标识,同时指定选取器筛选器的名称和超时时间。

GetChildren(
    IElementDescriptor elementDescriptor,
    string selectorFilter,
    [bool checkRootVisibility],
    [bool recursive],
    [double timeout])GetChildren(
    IElementDescriptor elementDescriptor,
    string selectorFilter,
    [bool checkRootVisibility],
    [bool recursive],
    [double timeout])
elementDescriptor IElementDescriptor
要从中检索子元素的元素,由对象存储库中用户界面元素的描述符标识。
selectorFilter String
选取器筛选条件的名称。
checkRootVisibility Boolean
如果为 True,则检查所有子项的根可见性。
recursive Boolean
如果为 True,则对所有子项执行递归搜索。
Timeout Double
超时 (以秒为单位)。

GetChildren(String, String, Boolean, Boolean, Double)

检索指定目标的子项,由对象存储库中的字符串标识,同时指定选取器筛选器的名称和超时 (如果要执行递归搜索或检查根的可见性)。

GetChildren(
    string target,
    string selectorFilter,
    [bool checkRootVisibility],
    [bool recursive],
    [double timeout])GetChildren(
    string target,
    string selectorFilter,
    [bool checkRootVisibility],
    [bool recursive],
    [double timeout])
target String
要从中检索子元素的目标元素,由对象存储库中的字符串标识。
selectorFilter String
选取器筛选条件的名称。
checkRootVisibility Boolean
如果为 True,则检查所有子项的根可见性。
recursive Boolean
如果为 True,则对所有子项执行递归搜索。
Timeout Double
超时 (以秒为单位)。

返回值

IEnumerable

指定目标的子元素,一次一个。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.