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

Obtenir l'attribut (Get Attribute)

Récupère un attribut d'un élément d'IU spécifié.

Définition

Espace de noms: UiPath.MobileAutomation.API.Models

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

Surcharges

SurchargeDescription
GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)Récupère un attribut d'un élément d'IU spécifié, identifié comme étant un IEelementDescriptor.
GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)Récupère un attribut d'un élément d'IU spécifié, identifié comme étant un ObjectRepositoryTarget.
GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)Récupère un attribut d'un élément d'IU spécifié, identifié comme étant un SelectorTarget.

GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)

Récupère un attribut d'un élément d'IU spécifié, identifié comme étant un IEelementDescriptor.

GetAttribute(
	    IElementDescriptor element,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
GetAttribute(
	    IElementDescriptor element,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)

element IElementDescriptor : 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](https://docs.uipath.com/studio/standalone/2023.10/user-guide/creating-an-object-repository#using-objects-in-coded-automations) to learn how to use Object Repository elements in
coded automations.
Visit [Using objects in coded
automations](https://docs.uipath.com/fr/studio/standalone/2023.10/user-guide/creating-an-object-repository#using-objects-in-coded-automations) to learn how to use Object Repository elements in
coded automations.

attributeName String : le nom de l'attribut que vous souhaitez récupérer à partir de l'élément d'IU spécifié.

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

GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)

Récupère un attribut d'un élément d'IU spécifié, identifié comme étant un ObjectRepositoryTarget.

GetAttribute(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
GetAttribute(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)

objectRepositoryTarget Cible du référentiel d’objet : un objet de type ObjectRepositoryTarget. Peut être créé à l’aide des méthodes FromObjectRepository(String, String, String, String) ou FromObjectRepository(String[] , String, String, String) .

attributeName String : le nom de l'attribut que vous souhaitez récupérer à partir de l'élément d'IU spécifié.

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

GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)

Récupère un attribut d'un élément d'IU spécifié, identifié comme étant un SelectorTarget.

GetAttribute(
	    SelectorTarget targetSelector,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
GetAttribute(
	    SelectorTarget targetSelector,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)

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

attributeName String : le nom de l'attribut que vous souhaitez récupérer à partir de l'élément d'IU spécifié.

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

RetournerValeur

Valeur de l’attribut récupéré.

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