Activités (Activities)
Plus récente (Latest)
False
Image de fond de la bannière
Activités UIAutomation
Dernière mise à jour 26 avr. 2024

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 (dans 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 (Object Repository) auquel vous accédez à l'aide de la classe ObjectRepository.Descriptors .

Visitez la page Utilisation d’objets dans des automatisations codées pour apprendre à utiliser les éléments du référentiel d’objets dans des automatisations codées.

attributeName Chaîne de caractères (string)
Le nom de l'attribut à 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 ObjectRepositoryTarget
Un objet de type ObjectRepositoryTarget. Peut être construit à l'aide des méthodes FromObjectRepository(String, String, String, String) ou FromObjectRepository(String[] , String, String, String) .
attributeName Chaîne de caractères (string)
Le nom de l'attribut à 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 SelectorTarget
Un objet de type SelectorTarget . Peut être construit à l'aide de la méthode FromSelector(String) .
attributeName Chaîne de caractères (string)
Le nom de l'attribut à 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 ?

Obtenez l'aide dont vous avez besoin
Formation RPA - Cours d'automatisation
Forum de la communauté UiPath
Logo Uipath blanc
Confiance et sécurité
© 2005-2024 UiPath. All rights reserved.