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

Última atualização 8 de mai de 2026

Get Attribute

UiPath.MobileAutomation.Activities.GetAttribute

Description

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

Compatibilidade do projeto

Windows - Legacy | Windows

Propriedades

Painel do Designer
  • Target - Default is set to (null). Once the target is indicated, all properties regarding the element that was indicated are displayed. You can further create variables out of the displayed attributes of an indicated target.
    • Fuzzy selector - The parameters for the fuzzy selector.
    • SearchSteps - Select the methods used to identify targets and anchors from the dropdown list.
    • Seletor restrito - O seletor que é gerado para o elemento indicado. Para saber como criar variáveis a partir dos atributos de um seletor de destino, consulte o tutorial Criação de variáveis a partir de atributos do seletor .
  • Attribute - The retrieved attribute, stored in a string variable. This field supports only strings and String variables.
Painel de Propriedades
Comum
  • ContinuarComErro — especifica se a automação deve continuar mesmo quando a atividade gera um erro. Este campo só aceita valores booleanos (True, False). O valor padrão é False. Como resultado, se o campo estiver em branco e um erro for lançado, a execução do projeto será interrompida. Se o valor for definido como True, a execução do projeto prosseguirá mesmo com erros.

    Observação:

    Se esta atividade estiver incluída em Try Catch e o valor da propriedade Continuar com erro for Verdadeiro, nenhum erro será capturado quando o projeto for executado.

  • DelayAfter - Delay time (in seconds) after executing the activity. The default value is 0.3 seconds.

  • DelayBefore - Delay time (in seconds) before the activity begins performing any operations. The default value is 0.2 seconds.

  • DisplayName - O nome de exibição da atividade.

  • Timeout - specifies the amount of time (in seconds) to wait for a specified element to be found before an error is thrown. The default value is 30 seconds.

Entrada
  • AttributeName - The name of the attribute you want to retrieve from the specified UI element.
  • Target - Default is set to (null). Once the target is indicated, all properties regarding the element that was indicated are displayed. You can further create variables out of the displayed attributes of an indicated target.
    • Fuzzy selector - The parameters for the fuzzy selector.
    • SearchSteps - Select the methods used to identify targets and anchors from the dropdown list.
    • Seletor restrito - O seletor que é gerado para o elemento indicado. Para saber como criar variáveis a partir dos atributos de um seletor de destino, consulte o tutorial Criação de variáveis a partir de atributos do seletor .
  • Tap offset (Optional) - Set the parameters of your target element. This property is triggered when you enable the Target.
    • Anchoring point - Select the default positioning of the anchor point.
    • CoordinateType - Choose how to set the target coordinates. You can select one of the following:
      • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
      • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
    • Offset X - Horizontal displacement of the targeted area selected in the CoordinateType field.
    • Offset Y - Vertical displacement of the targeted area selected in the CoordinateType field.
Diversos
  • Privado - Se selecionado, os valores de variáveis e argumentos não são mais registrados no nível Verbose.
Saída
  • Attribute - The retrieved attribute, stored in a string variable. This field supports only strings and String variables.
  • Description
  • Compatibilidade do projeto
  • Propriedades

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