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

获取属性

检索指定用户界面元素的上级。

定义

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

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

重载

重载描述
GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)检索标识为IEelementDescriptor的指定用户界面元素的属性。
GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)检索标识为ObjectRepositoryTarget的指定用户界面元素的属性。
GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)检索标识为SelectorTarget的指定用户界面元素的属性。

GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)

检索标识为IEelementDescriptor的指定用户界面元素的属性。
GetAttribute(
	    IElementDescriptor element,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)GetAttribute(
	    IElementDescriptor element,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
element IElementDescriptor
使用ObjectRepository.Descriptors类访问的对象存储库中的用户界面元素。
attributeName 字符串
要从指定用户界面元素检索的属性名称。
options MobileOptions.GetAttributeOptions (可选)
GetAttribute操作指定MobileOptions.GetAttributeOptions 。 默认值为 null。

GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)

检索标识为ObjectRepositoryTarget的指定用户界面元素的属性。
GetAttribute(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)GetAttribute(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
ObjectRepositoryTarget类型的对象。 可以使用FromObjectRepository(String, String, String, String)FromObjectRepository(String[] , String, String, String)方法构建。
attributeName 字符串
要从指定用户界面元素检索的属性名称。
options MobileOptions.GetAttributeOptions (可选)
GetAttribute操作指定MobileOptions.GetAttributeOptions 。 默认值为 null。

GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)

检索标识为SelectorTarget的指定用户界面元素的属性。
GetAttribute(
	    SelectorTarget targetSelector,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)GetAttribute(
	    SelectorTarget targetSelector,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
selectorTarget SelectorTarget
SelectorTarget类型的对象。 可以使用FromSelector(String)方法构建。
attributeName 字符串
要从指定用户界面元素检索的属性名称。
options MobileOptions.GetAttributeOptions (可选)
GetAttribute操作指定MobileOptions.GetAttributeOptions 。 默认值为 null。

返回值

检索到的属性的值。

此页面是否有帮助?

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