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

GetText

Extracts the text from a specified UI element and returns it as a String variable.

Definition

Namespace: UiPath.MobileAutomation.API.Models

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

Overloads

  
GetText(IElementDescriptor, MobileOptions.GetTextOptions)Extracts the text from a specified UI element as an IElementDescriptor.
GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)Extracts the text from a specified UI element as an ObjectRepositoryTarget.
GetText(SelectorTarget, MobileOptions.GetTextOptions)Extracts the text from a specified UI element as an SelectorTarget.

GetText(IElementDescriptor, MobileOptions.GetTextOptions)

Extracts the text from a specified UI element as an IElementDescriptor.
GetText(
	    IElementDescriptor element,
	    MobileOptions. GetTextOptions options = null
)GetText(
	    IElementDescriptor element,
	    MobileOptions. GetTextOptions 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.

MobileOptions.GetTextOptions MobileOptions.GetTextOptions (Optional)
Specifies the MobileOptions.GetTextOptions for the GetText action. Default value is null.

GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)

Extracts the text from a specified UI element as an ObjectRepositoryTarget.
GetText(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetTextOptions options = null
)GetText(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetTextOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
An object of type ObjectRepositoryTarget.
MobileOptions.GetTextOptions MobileOptions.GetTextOptions (Optional)
Specifies the MobileOptions.GetTextOptions for the GetText action. Default value is null.

GetText(SelectorTarget, MobileOptions.GetTextOptions)

Extracts the text from a specified UI element as an SelectorTarget.
GetText(
	    SelectorTarget targetSelector,
	    MobileOptions. GetTextOptions options = null
)GetText(
	    SelectorTarget targetSelector,
	    MobileOptions. GetTextOptions options = null
)
targetSelector SelectorTarget
An object of SelectorTarget type. Can be constructed using FromSelector(String) method.
MobileOptions.GetTextOptions MobileOptions.GetTextOptions (Optional)
Specifies the MobileOptions.GetTextOptions for the GetText action. Default value is null.

Return value

The retrieved text, 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.