UiPath Documentation
activities
latest
false
用户界面自动化活动
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

SetSelectedItem

Mobile Automation 编码自动化 API 中的 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 类访问的对象存储库中的用户界面元素。

Visit [Using objects in coded automations with
Mobile Automation](https://docs.uipath.com/studio/standalone/2024.4/user-guide/creating-an-object-repository#using-objects-in-coded-automations-with-mobile-automation) to learn how to use Object Repository elements with mobile automation.
Visit [Using objects in coded automations with
Mobile Automation](https://docs.uipath.com/zh-CN/studio/standalone/2024.4/user-guide/creating-an-object-repository#using-objects-in-coded-automations-with-mobile-automation) to learn how to use Object Repository elements with mobile automation.

selectedItem String :此调用后将选择的项目。

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 String :此调用后将选择的项目。

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 String :此调用后将选择的项目。

options MobileOptions.SetSelectedItemOptions :为设置文本操作指定MobileOptions.SetSelectedItemOptions 。默认值为 null。

此页面有帮助吗?

连接

需要帮助? 支持(opens in new window)

想要了解详细内容? UiPath Academy(opens in new window)

有问题? UiPath 论坛(opens in new window)

保持更新