UiPath Documentation
activities
latest
false
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

Atividades do UIAutomation

Get Attribute

Recupera um atributo de um elemento de interface gráfica especificado.

Definição

Namespace: UiPath.MobileAutomation.API.Models

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

Sobrecarregas

SobrecargaDescription
GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)Recupera um atributo de um elemento de interface gráfica especificado, identificado como um IEelementDescriptor.
GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)Recupera um atributo de um elemento de interface gráfica especificado, identificado como um ObjectRepositoryTarget.
GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)Recupera um atributo de um elemento de interface gráfica especificado, identificado como um SelectorTarget.

GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)

Recupera um atributo de um elemento de interface gráfica especificado, identificado como um IEelementDescriptor.

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

element IElementDescriptor : um elemento de interface gráfica do Repositório de objetos que você acessa usando a 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/pt-BR/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 : o nome do atributo que você deseja recuperar do elemento de interface gráfica especificado.

options MobileOptions.GetAttributeOptions (Opcional) : especifica o MobileOptions.GetAttributeOptions para a ação GetAttribute . O valor padrão é nulo.

GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)

Recupera um atributo de um elemento de interface gráfica especificado, identificado como um ObjectRepositoryTarget.

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

objectRepositoryTarget ObjectRepositoryTarget : um objeto do tipo ObjectRepositoryTarget. Pode ser construído usando os métodos FromObjectRepository(String, String, String, String) ou FromObjectRepository(String[] , String, String, String) .

attributeName String : o nome do atributo que você deseja recuperar do elemento de interface gráfica especificado.

options MobileOptions.GetAttributeOptions (Opcional) : especifica o MobileOptions.GetAttributeOptions para a ação GetAttribute . O valor padrão é nulo.

GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)

Recupera um atributo de um elemento de interface gráfica especificado, identificado como um SelectorTarget.

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

selectorTarget SelectorTarget : um objeto do tipo SelectorTarget . Pode ser construída usando o método FromSelector(String) .

attributeName String : o nome do atributo que você deseja recuperar do elemento de interface gráfica especificado.

options MobileOptions.GetAttributeOptions (Opcional) : especifica o MobileOptions.GetAttributeOptions para a ação GetAttribute . O valor padrão é nulo.

RetornarValor

O valor do atributo recuperado.

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades