Activities
latest
false
Banner background image
UI Automation Activities
Last updated Apr 26, 2024

GetSelectedItem

Retrieves the selected item from a target UI element.

Definition

Namespace: UiPath.MobileAutomation.API.Models

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

Overloads

OverloadDescription
GetSelectedItem(IElementDescriptor, MobileOptions.GetSelectedItemOptions)Retrieves the selected item from a target UI element, identified as an IElementDescriptor.
GetSelectedItem(ObjectRepositoryTarget, MobileOptions.GetSelectedItemOptions)Retrieves the selected item from a target UI element, identified as an ObjectRepositoryTarget.
GetSelectedItem(SelectorTarget, MobileOptions.GetSelectedItemOptions)Retrieves the selected item from a target UI element, identified as a SelectorTarget.

ElementExists(IElementDescriptor, MobileOptions.ElementExistsOptions)

Retrieves the selected item from a target UI element, identified as an IElementDescriptor.
GetSelectedItem(
	    IElementDescriptor element,
	    MobileOptions. GetSelectedItemOptions options = null
)GetSelectedItem(
	    IElementDescriptor element,
	    MobileOptions. GetSelectedItemOptions options = null
)
element IElementDescriptor
A UI element from the Object Repository that you access using the ObjectRepository.Descriptors class.

Visit Using objects in coded automations to learn how to use Object Repository elements in coded automations.

MobileOptions.GetSelectedItemOptions MobileOptions.GetSelectedItemOptions Class (Optional)
Specifies the MobileOptions.GetSelectedItemOptions for the GetSelectedItem action. Default value is null.

GetSelectedItem(ObjectRepositoryTarget, MobileOptions.GetSelectedItemOptions)

Retrieves the selected item from a target UI element, identified as an ObjectRepositoryTarget.
GetSelectedItem(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetSelectedItemOptions options = null
)GetSelectedItem(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetSelectedItemOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
An object of type ObjectRepositoryTarget. Can be constructed using FromObjectRepository(String, String, String, String) or FromObjectRepository(String[] , String, String, String) methods.
MobileOptions.GetSelectedItemOptions MobileOptions.GetSelectedItemOptions Class (Optional)
Specifies the MobileOptions.GetSelectedItemOptions for the GetSelectedItem action. Default value is null.

GetSelectedItem(SelectorTarget, MobileOptions.GetSelectedItemOptions)

Retrieves the selected item from a target UI element, identified as a SelectorTarget.
string GetSelectedItem(
	    SelectorTarget targetSelector,
	    MobileOptions. GetSelectedItemOptions options = null
)string GetSelectedItem(
	    SelectorTarget targetSelector,
	    MobileOptions. GetSelectedItemOptions options = null
)
targetSelector SelectorTarget
An object of SelectorTarget type. Can be constructed using FromSelector(String) method.
MobileOptions.GetSelectedItemOptions MobileOptions.GetSelectedItemOptions Class (Optional)
Specifies the MobileOptions.GetSelectedItemOptions for the GetSelectedItem action. Default value is null.

Return value

The selected item, stored in a string.

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.