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

SetText

在移动自动化可识别的目标用户界面元素中键入指定文本。

定义

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

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

重载

  
SetText(IElementDescriptor, string, MobileOptions.SetTextOptions)在目标用户界面元素中键入指定的文本,标识为IElementDescriptor
SetText(ObjectRepositoryTarget, string, MobileOptions.SetTextOptions)在目标用户界面元素中键入指定的文本,标识为ObjectRepositoryTarget
SetText(SelectorTarget, string, MobileOptions.SetTextOptions在目标用户界面元素中键入指定的文本,标识为SelectorTarget

SetText(IElementDescriptor, string, MobileOptions.SetTextOptions)

在目标用户界面元素中键入指定的文本,标识为IElementDescriptor
SetText(
	    IElementDescriptor element,
	    string text,
	    MobileOptions. SetTextOptions options = null
)SetText(
	    IElementDescriptor element,
	    string text,
	    MobileOptions. SetTextOptions options = null
)
element
使用ObjectRepository.Descriptors类访问的对象存储库中的用户界面元素。

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

text 字符串
要输入到指定用户界面元素的文本,存储在字符串中。
options MobileOptions.SetTextOptions (可选)
为设置文本操作指定MobileOptions.SetTextOptions 。 默认值为 null。

SetText(ObjectRepositoryTarget, string, MobileOptions.SetTextOptions)

在目标用户界面元素中键入指定的文本,标识为ObjectRepositoryTarget
SetText(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string text,
	    MobileOptions. SetTextOptions options = null
)SetText(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string text,
	    MobileOptions. SetTextOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
ObjectRepositoryTarget类型的对象。
text 字符串
要输入到指定用户界面元素的文本,存储在字符串中。
options MobileOptions.SetTextOptions (可选)
为设置文本操作指定MobileOptions.SetTextOptions 。 默认值为 null。

SetText(SelectorTarget, string, MobileOptions.SetTextOptions

在目标用户界面元素中键入指定的文本,标识为SelectorTarget
SetText(
	    SelectorTarget targetSelector,
	    string text,
	    MobileOptions. SetTextOptions options = null
)SetText(
	    SelectorTarget targetSelector,
	    string text,
	    MobileOptions. SetTextOptions options = null
)
targetSelector SelectorTarget
SelectorTarget类型的对象。 可以使用FromSelector(String)方法构建。
text 字符串
要输入到指定用户界面元素的文本,存储在字符串中。
options MobileOptions.SetTextOptions (可选)
为设置文本操作指定MobileOptions.SetTextOptions 。 默认值为 null。

此页面是否有帮助?

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