UiPath Documentation
activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.
UiPath logo, featuring letters U and I in white

Activités UIAutomation

Dernière mise à jour 16 avr. 2026

GetText

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

Définition

Espace de noms: UiPath.MobileAutomation.API.Models

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

Surcharges

GetText(IElementDescriptor, MobileOptions.GetTextOptions)Extrait le texte d'un élément spécifié de l'interface utilisateur sous la forme d'un IElementDescriptor.
GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)Extrait le texte d'un élément spécifié de l'interface utilisateur sous la forme d'un ObjectRepositoryTarget.
GetText(SelectorTarget, MobileOptions.GetTextOptions)Extrait le texte d'un élément spécifié de l'interface utilisateur sous la forme d'un SelectorTarget.

GetText(IElementDescriptor, MobileOptions.GetTextOptions)

Extrait le texte d'un élément spécifié de l'interface utilisateur sous la forme d'un IElementDescriptor.

GetText(
	    IElementDescriptor element,
	    MobileOptions. GetTextOptions options = null
)
GetText(
	    IElementDescriptor element,
	    MobileOptions. GetTextOptions options = null
)

element : un élément d’IU du référentiel d’objets auquel vous accédez à l’aide de la classe 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/fr/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.

MobileOptions.GetTextOptions MobileOptions.GetTextOptions (Facultatif) : spécifie le MobileOptions.GetTextOptions pour l'action GetText . La valeur par défaut est null.

GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)

Extrait le texte d'un élément spécifié de l'interface utilisateur sous la forme d'un ObjectRepositoryTarget.

GetText(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetTextOptions options = null
)
GetText(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetTextOptions options = null
)

objectRepositoryTarget Cible du référentiel d’objet : un objet de type ObjectRepositoryTarget.

MobileOptions.GetTextOptions MobileOptions.GetTextOptions (Facultatif) : spécifie le MobileOptions.GetTextOptions pour l'action GetText . La valeur par défaut est null.

GetText(SelectorTarget, MobileOptions.GetTextOptions)

Extrait le texte d'un élément spécifié de l'interface utilisateur sous la forme d'un SelectorTarget.

GetText(
	    SelectorTarget targetSelector,
	    MobileOptions. GetTextOptions options = null
)
GetText(
	    SelectorTarget targetSelector,
	    MobileOptions. GetTextOptions options = null
)

targetSelector Cible de sélecteur : un objet de type SelectorTarget . Peut être créé à l’aide de la méthode FromSelector(String) .

MobileOptions.GetTextOptions MobileOptions.GetTextOptions (Facultatif) : spécifie le MobileOptions.GetTextOptions pour l'action GetText . La valeur par défaut est null.

RetournerValeur

Le texte récupéré est stocké dans une chaîne.

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour