activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.
UiPath logo, featuring letters U and I in white

Activités UIAutomation

Dernière mise à jour 18 mars 2026

Définir le texte (Set Text)

UiPath.MobileAutomation.Activities.SetText

Description

Saisit le texte spécifié dans un élément d'IU cible, reconnu par l'automatisation mobile.

Compatibilité du projet

Windows - Legacy | Windows

Configuration

Module 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.
    • Texte du CV (CV Text) : le texte identifié par le modèle Computer Vision dans l'élément d'IU cible.

    • Type de CV (CV Type) : le type de contrôle identifié à l'aide de Computer Vision.

      Remarque :

      Nous vous recommandons de laisser le type de contrôle CV inchangé après avoir indiqué la cible. Sinon, le modèle Computer Vision risque de ne pas identifier la cible au moment de l'exécution, car vous avez modifié le type de commande.

    • Fuzzy selector - The parameters for the fuzzy selector.

    • SearchSteps - Select the methods used to identify targets and anchors from the dropdown list.

    • Sélecteur strict : le sélecteur généré pour l’élément indiqué. Pour apprendre à créer des variables à partir des attributs d’un sélecteur cible, consultez le Tutoriel Création de variables à partir des attributs du sélecteur .

  • Text - The text you want to type into the specified UI element, stored in a string. This field supports only strings and String variables.
Panneau propriétés
Commun
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

    Remarque :

    Si cette activité est incluse dans Tenter de capturer (Try Catch) et que la valeur de la propriété Poursuite sur erreur (ContinueOnError) est True, aucune erreur n'est détectée lors de l'exécution du projet.

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

  • NomAffichage (DisplayName) - Nom affiché de l'activité.

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

Entrée
  • 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:
    • Non (No)
    • Simple
    • 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.
    • Texte du CV (CV Text) : le texte identifié par le modèle Computer Vision dans l'élément d'IU cible.

    • Type de CV (CV Type) : le type de contrôle identifié à l'aide de Computer Vision.

      Remarque :

      Nous vous recommandons de laisser le type de contrôle CV inchangé après avoir indiqué la cible. Sinon, le modèle Computer Vision risque de ne pas identifier la cible au moment de l'exécution, car vous avez modifié le type de commande.

    • Fuzzy selector - The parameters for the fuzzy selector.

    • SearchSteps - Select the methods used to identify targets and anchors from the dropdown list.

    • Sélecteur strict : le sélecteur généré pour l’élément indiqué. Pour apprendre à créer des variables à partir des attributs d’un sélecteur cible, consultez le Tutoriel Création de variables à partir des attributs du sélecteur .

  • 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.
  • EffacerTexte (ClearText) : efface tout le texte dans la cible, avant d’entrer le texte que vous souhaitez définir. Cette propriété est définie par défaut sur Vrai (True). Cette propriété s'applique à tous les types de cibles.
Divers
  • Privé (Private) - Si cette option est sélectionnée, les valeurs des variables et des arguments ne sont plus enregistrées au niveau Détaillé (Verbose).
  • Description
  • Compatibilité du projet
  • Configuration

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour