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

SetSelectedItem

在目标元素上设置选定的项目。

定义

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

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

重载

重载描述
SetSelectedItem(IElementDescriptor, string, MobileOptions.SetSelectedItemOptions)在标识为IElementDescriptor的目标用户界面元素上设置选定的项目。
SetSelectedItem(ObjectRepositoryTarget, string, MobileOptions.SelectedItemOptions)在标识为ObjectRepositoryTarget的目标用户界面元素上设置选定的项目。
SetSelectedItem(SelectorTarget, string, MobileOptions.SetSelectedItemOptions)在标识为SelectorTarget的目标用户界面元素上设置选定的项目。

SetSelectedItem(IElementDescriptor, string, MobileOptions.SetSelectedItemOptions)

在标识为IElementDescriptor的目标用户界面元素上设置选定的项目。
SetSelectedItem(
	    IElementDescriptor element,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)SetSelectedItem(
	    IElementDescriptor element,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)
element
使用ObjectRepository.Descriptors类访问的对象存储库中的用户界面元素。

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

selectedItem 字符串
此调用后将选择的项目。
options MobileOptions.SetSelectedItemOptions
为设置文本操作指定MobileOptions.SetSelectedItemOptions 。 默认值为 null。

SetSelectedItem(ObjectRepositoryTarget, string, MobileOptions.SelectedItemOptions)

在标识为ObjectRepositoryTarget的目标用户界面元素上设置选定的项目。
SetSelectedItem(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)SetSelectedItem(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
ObjectRepositoryTarget类型的对象。
selectedItem 字符串
此调用后将选择的项目。
options MobileOptions.SetSelectedItemOptions
为设置文本操作指定MobileOptions.SetSelectedItemOptions 。 默认值为 null。

SetSelectedItem(SelectorTarget, string, MobileOptions.SetSelectedItemOptions)

在标识为SelectorTarget的目标用户界面元素上设置选定的项目。
SetSelectedItem(
	    SelectorTarget targetSelector,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)SetSelectedItem(
	    SelectorTarget targetSelector,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)
targetSelector SelectorTarget
SelectorTarget类型的对象。 可以使用FromSelector(String)方法构建。
selectedItem 字符串
此调用后将选择的项目。
options MobileOptions.SetSelectedItemOptions
为设置文本操作指定MobileOptions.SetSelectedItemOptions 。 默认值为 null。

此页面是否有帮助?

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