activities
latest
false
UiPath logo, featuring letters U and I in white

UI Automation Activities

Last updated Dec 4, 2024

SetSelectedItem

Sets the selected item on a target UI element.

Definition

Namespace: UiPath.MobileAutomation.API.Models

Assembly: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

Overloads

OverloadDescription
SetSelectedItem(IElementDescriptor, string, MobileOptions.SetSelectedItemOptions)Sets the selected item on a target UI element, identified as an IElementDescriptor.
SetSelectedItem(ObjectRepositoryTarget, string, MobileOptions.SelectedItemOptions)Sets the selected item on a target UI element, identified as an ObjectRepositoryTarget.
SetSelectedItem(SelectorTarget, string, MobileOptions.SetSelectedItemOptions)Sets the selected item on a target UI element, identified as a SelectorTarget.

SetSelectedItem(IElementDescriptor, string, MobileOptions.SetSelectedItemOptions)

Sets the selected item on a target UI element, identified as an IElementDescriptor.
SetSelectedItem(
	    IElementDescriptor element,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)SetSelectedItem(
	    IElementDescriptor element,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)
element
A UI element from the Object Repository that you access using the ObjectRepository.Descriptors class.

Visit Using objects in coded automations with Mobile Automation to learn how to use Object Repository elements with mobile automation.

selectedItem String
The item that will be selected after this call.
options MobileOptions.SetSelectedItemOptions
Specifies the MobileOptions.SetSelectedItemOptions for the set text action. Default value is null.

SetSelectedItem(ObjectRepositoryTarget, string, MobileOptions.SelectedItemOptions)

Sets the selected item on a target UI element, identified as an ObjectRepositoryTarget.
SetSelectedItem(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)SetSelectedItem(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
An object of type ObjectRepositoryTarget.
selectedItem String
The item that will be selected after this call.
options MobileOptions.SetSelectedItemOptions
Specifies the MobileOptions.SetSelectedItemOptions for the set text action. Default value is null.

SetSelectedItem(SelectorTarget, string, MobileOptions.SetSelectedItemOptions)

Sets the selected item on a target UI element, identified as a SelectorTarget.
SetSelectedItem(
	    SelectorTarget targetSelector,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)SetSelectedItem(
	    SelectorTarget targetSelector,
	    string selectedItem,
	    MobileOptions. SetSelectedItemOptions options = null
)
targetSelector SelectorTarget
An object of SelectorTarget type. Can be constructed using FromSelector(String) method.
selectedItem String
The item that will be selected after this call.
options MobileOptions.SetSelectedItemOptions
Specifies the MobileOptions.SetSelectedItemOptions for the set text action. Default value is null.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.