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

GetText

Extracts the text from a specified UI element and returns it as a String variable.

定义

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

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

重载

  
GetText(IElementDescriptor, MobileOptions.GetTextOptions)从指定用户界面元素中提取文本作为IElementDescriptor
GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)从指定用户界面元素中提取文本作为ObjectRepositoryTarget
GetText(SelectorTarget, MobileOptions.GetTextOptions)从指定用户界面元素中提取文本作为SelectorTarget

GetText(IElementDescriptor, MobileOptions.GetTextOptions)

从指定用户界面元素中提取文本作为IElementDescriptor
GetText(
	    IElementDescriptor element,
	    MobileOptions. GetTextOptions options = null
)GetText(
	    IElementDescriptor element,
	    MobileOptions. GetTextOptions options = null
)
element
使用ObjectRepository.Descriptors类访问的对象存储库中的用户界面元素。

请访问将编码自动化中的对象与移动自动化结合使用,了解如何将对象存储库元素与移动自动化结合使用。

MobileOptions.GetTextOptions MobileOptions.GetTextOptions (可选)
GetText操作指定MobileOptions.GetTextOptions 。 默认值为 null。

GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)

从指定用户界面元素中提取文本作为ObjectRepositoryTarget
GetText(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetTextOptions options = null
)GetText(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetTextOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
ObjectRepositoryTarget类型的对象。
MobileOptions.GetTextOptions MobileOptions.GetTextOptions (可选)
GetText操作指定MobileOptions.GetTextOptions 。 默认值为 null。

GetText(SelectorTarget, MobileOptions.GetTextOptions)

从指定用户界面元素中提取文本作为SelectorTarget
GetText(
	    SelectorTarget targetSelector,
	    MobileOptions. GetTextOptions options = null
)GetText(
	    SelectorTarget targetSelector,
	    MobileOptions. GetTextOptions options = null
)
targetSelector SelectorTarget
SelectorTarget类型的对象。 可以使用FromSelector(String)方法构建。
MobileOptions.GetTextOptions MobileOptions.GetTextOptions (可选)
GetText操作指定MobileOptions.GetTextOptions 。 默认值为 null。

返回值

检索到的文本,存储在字符串中。

此页面是否有帮助?

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