UiPath Documentation
activities
latest
false
Actividades UIAutomation
Importante :
Este contenido se ha localizado parcialmente a partir de un sistema de traducción automática. La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.

Obtener atributo

GetAttribute en la API de automatización codificada de Mobile Automation: recupera un atributo de un elemento de IU especificado.

Recupera un atributo de un elemento de IU especificado.

Definición​

Espacio de nombres: UiPath.MobileAutomation.API.Models

Ensamblado: UiPath.MobileAutomation.API (en UiPath.MobileAutomation.API.dll)

Sobrecargas​

SobrecargaDescripción
GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)Recupera un atributo de un elemento de la IU especificado, identificado como IEelementDescriptor.
GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)Recupera un atributo de un elemento de la IU especificado, identificado como ObjectRepositoryTarget.
GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)Recupera un atributo de un elemento de la IU especificado, identificado como SelectorTarget.

GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)​

Recupera un atributo de un elemento de la IU especificado, identificado como IEelementDescriptor.

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

element IElementDescriptor: un elemento de IU del repositorio de objetos al que accedes utilizando la clase 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/es/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 : el nombre del atributo que quieres recuperar del elemento de la IU especificado.

options MobileOptions.GetAttributeOptions (Opcional): especifica MobileOptions.GetAttributeOptions para la acción GetAttribute . El valor predeterminado es nulo.

GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)​

Recupera un atributo de un elemento de la IU especificado, identificado como ObjectRepositoryTarget.

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

objectRepositoryTarget : un objeto ObjectRepositoryTarget . Se puede construir utilizando los métodos FromObjectRepository(String, String, String, String) o FromObjectRepository(String[] , String, String, String).

attributeName : el nombre del atributo que quieres recuperar del elemento de la IU especificado.

options MobileOptions.GetAttributeOptions (Opcional): especifica MobileOptions.GetAttributeOptions para la acción GetAttribute . El valor predeterminado es nulo.

GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)​

Recupera un atributo de un elemento de la IU especificado, identificado como SelectorTarget.

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

selectorTarget SelectorTarget: un objeto de tipo SelectorTarget . Se puede construir utilizando el método FromSelector(String).

attributeName : el nombre del atributo que quieres recuperar del elemento de la IU especificado.

options MobileOptions.GetAttributeOptions (Opcional): especifica MobileOptions.GetAttributeOptions para la acción GetAttribute . El valor predeterminado es nulo.

ValorDeRetorno​

El valor del atributo recuperado.

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte

¿Quiere aprender? UiPath Academy

¿Tiene alguna pregunta? Foro de UiPath

Manténgase actualizado