UiPath Documentation
activities
latest
false

Atividades do UIAutomation

Última atualização 8 de mai de 2026

GetText

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

Definição

Namespace: UiPath.MobileAutomation.API.Models

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

Sobrecarregas

GetText(IElementDescriptor, MobileOptions.GetTextOptions)Extrai o texto de um elemento de interface gráfica especificado como um IElementDescriptor.
GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)Extrai o texto de um elemento de interface gráfica especificado como um ObjectRepositoryTarget.
GetText(SelectorTarget, MobileOptions.GetTextOptions)Extrai o texto de um elemento de interface gráfica especificado como um SelectorTarget.

GetText(IElementDescriptor, MobileOptions.GetTextOptions)

Extrai o texto de um elemento de interface gráfica especificado como um IElementDescriptor.

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

element : 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 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/pt-BR/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 (Opcional) : especifica o MobileOptions.GetTextOptions para a ação GetText . O valor padrão é nulo.

GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)

Extrai o texto de um elemento de interface gráfica especificado como um ObjectRepositoryTarget.

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

objectRepositoryTarget ObjectRepositoryTarget : um objeto do tipo ObjectRepositoryTarget.

MobileOptions.GetTextOptions MobileOptions.GetTextOptions (Opcional) : especifica o MobileOptions.GetTextOptions para a ação GetText . O valor padrão é nulo.

GetText(SelectorTarget, MobileOptions.GetTextOptions)

Extrai o texto de um elemento de interface gráfica especificado como um SelectorTarget.

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

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

MobileOptions.GetTextOptions MobileOptions.GetTextOptions (Opcional) : especifica o MobileOptions.GetTextOptions para a ação GetText . O valor padrão é nulo.

RetornarValor

O texto recuperado, armazenado em uma cadeia de caracteres.

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