UiPath Documentation
activities
latest
false

Atividades do UIAutomation

Última atualização 6 de mai de 2026

Set Text

UiPath.MobileAutomation.Activities.SetText

Description

Digita o texto especificado em um elemento de interface gráfica de destino, reconhecido pelo Mobile Automation.

Compatibilidade do projeto

Windows - Legacy | Windows

Configuração

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.
    • CV Text - O texto identificado pelo modelo do Computer Vision no elemento de interface gráfica de destino.

    • CV Type - O tipo de controle identificado usando o Computer Vision.

      Observação:

      Recomendamos deixar o tipo de controle do CV inalterado após indicar o destino. Caso contrário, o modelo do Computer Vision pode não identificar o destino no runtime, porque você alterou o tipo de controle.

    • 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 .

  • Text - The text you want to type into the specified UI element, stored in a string. 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
  • SecureText - Send a secure string in the specified UI element. Requires a SecureString variable.
  • Send new line - A boolean variable which specifies whether a new line should be inserted when writing the text. By default, this field is set to True.
  • Tap Before - Specifies whether the target should be tapped before typing the text. By default, this activity is set to Single. Also supports multiple types of taps, as follows:
    • Não
    • Único
    • Double
    • Long
  • 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.
    • CV Text - O texto identificado pelo modelo do Computer Vision no elemento de interface gráfica de destino.

    • CV Type - O tipo de controle identificado usando o Computer Vision.

      Observação:

      Recomendamos deixar o tipo de controle do CV inalterado após indicar o destino. Caso contrário, o modelo do Computer Vision pode não identificar o destino no runtime, porque você alterou o tipo de controle.

    • 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.
  • Text - The text you want to type into the specified UI element, stored in a string. This field supports only strings and String variables.
  • Limpar Texto - Limpa qualquer texto no destino antes de inserir o texto que você deseja definir. Essa propriedade é, por padrão, definida como True. Essa propriedade se aplica a todos os tipos de destino.
Diversos
  • Privado - Se selecionado, os valores de variáveis e argumentos não são mais registrados no nível Verbose.
  • Description
  • Compatibilidade do projeto
  • Configuração

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