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 9 mars 2026

Saisir dans (Type Into)

Entre du texte dans un élément d'IU spécifié, par exemple une zone de texte. Vous pouvez également envoyer des touches spéciales telles que Tab ou Entrée à l'élément d'IU.

Si vous souhaitez saisir des informations sensibles en toute sécurité, ajoutez une API GetCredential avant cette API et sélectionnez comme texte à saisir les valeurs d'utilisateur et de mot de passe enregistrées de cette API pour une utilisation ultérieure

Cette API doit être ajoutée après Ouvrir ou Joindre.

Définition

Espace de noms: UiPath.UIAutomationNext.API.Models

Assembly: UiPath.UIAutomationNext.API.Models (dans UiPath.UIAutomationNext.API.Models dll)

Surcharges

SurchargeDescription
TypeInto(TargetAnchorableModel, String)Entre du texte dans un élément d'IU spécifié, identifié comme une chaîne provenant du référentiel d'objets.
TypeInto(TargetAnchorableModel, TypeIntoOptions)Entre du texte dans un élément d'IU spécifié, identifié comme un objet TargetAnchorableModel .
TypeInto(String, String)Entre du texte dans un élément d'IU spécifié, identifié comme une chaîne provenant du référentiel d'objets.
TypeInto(String, TypeIntoOptions)Entre du texte dans un élément d'IU spécifié, identifié comme une chaîne du référentiel d'objets, avec d'autres configurations.

TypeInto(TargetAnchorableModel, String)

Entre du texte dans un élément d'IU spécifié, identifié comme une chaîne provenant du référentiel d'objets.

TypeInto(
    TargetAnchorableModel target,
    string text)
TypeInto(
    TargetAnchorableModel target,
    string text)

target TargetAnchorableModel : l’élément d’IU cible, identifié comme objet TargetAnchorableModel .

text String : le texte que vous souhaitez saisir.

TypeInto(TargetAnchorableModel, TypeIntoOptions)

Entre du texte dans un élément d'IU spécifié, identifié comme un objet TargetAnchorableModel .

TypeInto(
    TargetAnchorableModel target,
    TypeIntoOptions typeIntoOptions)
TypeInto(
    TargetAnchorableModel target,
    TypeIntoOptions typeIntoOptions)

target TargetAnchorableModel : l’élément d’IU cible, identifié comme objet TargetAnchorableModel .

typeIntoOptions TypeIntoOptions : Les options suivantes sont disponibles :

* `Text
  String` - The text that you want to type into.
* `DelayBetweenKeys Double` - Delay (in
  seconds) between consecutive keystrokes. The default value is 0.02
  seconds.
* `ActivateBefore Boolean` - If true,
  the specified UI element is brought to the foreground and activated
  before the text is typed in. If false, the API will type into the
  current active window.
* `ClickBeforeMode NClickMode` - the
  type of click to perform before typing into:
  + `None`
  + `Single`
  + `Double`
* `EmptyFieldMode NEmptyFieldMode` -
  Choose whether to delete the existing content in the field
  before typing the text, and how to empty the field. Fields are
  emptied by sending a combination of keystrokes that differs
  between fields with a single line and fields with multiple
  lines. Make sure to select the right option depending on the
  indicated field. The options are:
  + `None`
  + `SingleLine`
  + `MultiLine`
* `DeselectAfter Boolean` - This can
  only be used when the `InteractionMode` is set to
   `Simulate`. Some target applications do not
  register a type action unless a Complete event is also sent
  alongside the action. Setting this to true adds a Complete event
  after the text entry, in order to register the action correctly. If
  you set it to false, the Complete event is not sent to the target
  application. By default, this is set to true.
* `AlterIfDisabled Boolean` - If set to
  true, the Select Item action is executed even if the specified UI
  element is disabled. This parameter does not apply if the
  `InteractionMode` is set to `Hardware
  Events`. By default, this is false.
* `InteractionMode
  NChildInteractionMode` - Specifies the API used to
  perform the action. The following options are available:
  + `SameAsCard` - Use the same input mode
    as [Open](https://docs.uipath.com/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-open) or [Attach](https://docs.uipath.com/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-attach). This is the default selection.
  + `HardwareEvents` - Uses the hardware
    driver to perform the action. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `Simulate` - Simulates the action using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Sends all
    text in a single action. Works even if the target
    application is not in focus. Please test if your target
    application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/studio/docs/chromium-api).
  + `WindowMessages` - Sends the mouse and
    keyboard input through Win32 messages. Recommended for
    desktop apps. Usually more reliable than Hardware Events.
    Sends all text in a single action. Works even if target app
    is not in focus. Please test if your target application UI
    element supports this.
* `Text
  String` - The text that you want to type into.
* `DelayBetweenKeys Double` - Delay (in
  seconds) between consecutive keystrokes. The default value is 0.02
  seconds.
* `ActivateBefore Boolean` - If true,
  the specified UI element is brought to the foreground and activated
  before the text is typed in. If false, the API will type into the
  current active window.
* `ClickBeforeMode NClickMode` - the
  type of click to perform before typing into:
  + `None`
  + `Single`
  + `Double`
* `EmptyFieldMode NEmptyFieldMode` -
  Choose whether to delete the existing content in the field
  before typing the text, and how to empty the field. Fields are
  emptied by sending a combination of keystrokes that differs
  between fields with a single line and fields with multiple
  lines. Make sure to select the right option depending on the
  indicated field. The options are:
  + `None`
  + `SingleLine`
  + `MultiLine`
* `DeselectAfter Boolean` - This can
  only be used when the `InteractionMode` is set to
   `Simulate`. Some target applications do not
  register a type action unless a Complete event is also sent
  alongside the action. Setting this to true adds a Complete event
  after the text entry, in order to register the action correctly. If
  you set it to false, the Complete event is not sent to the target
  application. By default, this is set to true.
* `AlterIfDisabled Boolean` - If set to
  true, the Select Item action is executed even if the specified UI
  element is disabled. This parameter does not apply if the
  `InteractionMode` is set to `Hardware
  Events`. By default, this is false.
* `InteractionMode
  NChildInteractionMode` - Specifies the API used to
  perform the action. The following options are available:
  + `SameAsCard` - Use the same input mode
    as [Open](https://docs.uipath.com/fr/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-open) or [Attach](https://docs.uipath.com/fr/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-attach). This is the default selection.
  + `HardwareEvents` - Uses the hardware
    driver to perform the action. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `Simulate` - Simulates the action using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Sends all
    text in a single action. Works even if the target
    application is not in focus. Please test if your target
    application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/fr/studio/docs/chromium-api).
  + `WindowMessages` - Sends the mouse and
    keyboard input through Win32 messages. Recommended for
    desktop apps. Usually more reliable than Hardware Events.
    Sends all text in a single action. Works even if target app
    is not in focus. Please test if your target application UI
    element supports this.

TypeInto(String, String)

Entre du texte dans un élément d'IU spécifié, identifié comme une chaîne provenant du référentiel d'objets.

TypeInto(
    string target,
    string text)
TypeInto(
    string target,
    string text)

target : l’élément d’IU cible dans lequel vous souhaitez saisir, identifié sous la forme d’une chaîne du référentiel d’objets.

text String : le texte que vous souhaitez saisir.

TypeInto(String, TypeIntoOptions)

Entre du texte dans un élément d'IU spécifié, identifié comme une chaîne du référentiel d'objets, avec d'autres configurations.

TypeInto(
    string target,
    TypeIntoOptions typeIntoOptions)
TypeInto(
    string target,
    TypeIntoOptions typeIntoOptions)

target : l’élément d’IU cible dans lequel vous souhaitez saisir, identifié sous la forme d’une chaîne du référentiel d’objets.

typeIntoOptions TypeIntoOptions : Les options suivantes sont disponibles :

* `Text
  String` - The text that you want to type into.
* `DelayBetweenKeys Double` - Delay (in
  seconds) between consecutive keystrokes. The default value is 0.02
  seconds.
* `ActivateBefore Boolean` - If true,
  the specified UI element is brought to the foreground and activated
  before the text is typed in. If false, the API will type into the
  current active window.
* `ClickBeforeMode NClickMode` - the
  type of click to perform before typing into:
  + `None`
  + `Single`
  + `Double`
* `EmptyFieldMode NEmptyFieldMode` -
  Choose whether to delete the existing content in the field
  before typing the text, and how to empty the field. Fields are
  emptied by sending a combination of keystrokes that differs
  between fields with a single line and fields with multiple
  lines. Make sure to select the right option depending on the
  indicated field. The options are:
  + `None`
  + `SingleLine`
  + `MultiLine`
* `DeselectAfter Boolean` - This can
  only be used when the `InteractionMode` is set to
   `Simulate`. Some target applications do not
  register a type action unless a Complete event is also sent
  alongside the action. Setting this to true adds a Complete event
  after the text entry, in order to register the action correctly. If
  you set it to false, the Complete event is not sent to the target
  application. By default, this is set to true.
* `AlterIfDisabled Boolean` - If set to
  true, the Select Item action is executed even if the specified UI
  element is disabled. This parameter does not apply if the
  `InteractionMode` is set to `Hardware
  Events`. By default, this is false.
* `InteractionMode
  NChildInteractionMode` - Specifies the API used to
  perform the action. The following options are available:
  + `SameAsCard` - Use the same input mode
    as [Open](https://docs.uipath.com/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-open) or [Attach](https://docs.uipath.com/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-attach). This is the default selection.
  + `HardwareEvents` - Uses the hardware
    driver to perform the action. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `Simulate` - Simulates the action using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Sends all
    text in a single action. Works even if the target
    application is not in focus. Please test if your target
    application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/studio/docs/chromium-api).
  + `WindowMessages` - Sends the mouse and
    keyboard input through Win32 messages. Recommended for
    desktop apps. Usually more reliable than Hardware Events.
    Sends all text in a single action. Works even if target app
    is not in focus. Please test if your target application UI
    element supports this.
* `Text
  String` - The text that you want to type into.
* `DelayBetweenKeys Double` - Delay (in
  seconds) between consecutive keystrokes. The default value is 0.02
  seconds.
* `ActivateBefore Boolean` - If true,
  the specified UI element is brought to the foreground and activated
  before the text is typed in. If false, the API will type into the
  current active window.
* `ClickBeforeMode NClickMode` - the
  type of click to perform before typing into:
  + `None`
  + `Single`
  + `Double`
* `EmptyFieldMode NEmptyFieldMode` -
  Choose whether to delete the existing content in the field
  before typing the text, and how to empty the field. Fields are
  emptied by sending a combination of keystrokes that differs
  between fields with a single line and fields with multiple
  lines. Make sure to select the right option depending on the
  indicated field. The options are:
  + `None`
  + `SingleLine`
  + `MultiLine`
* `DeselectAfter Boolean` - This can
  only be used when the `InteractionMode` is set to
   `Simulate`. Some target applications do not
  register a type action unless a Complete event is also sent
  alongside the action. Setting this to true adds a Complete event
  after the text entry, in order to register the action correctly. If
  you set it to false, the Complete event is not sent to the target
  application. By default, this is set to true.
* `AlterIfDisabled Boolean` - If set to
  true, the Select Item action is executed even if the specified UI
  element is disabled. This parameter does not apply if the
  `InteractionMode` is set to `Hardware
  Events`. By default, this is false.
* `InteractionMode
  NChildInteractionMode` - Specifies the API used to
  perform the action. The following options are available:
  + `SameAsCard` - Use the same input mode
    as [Open](https://docs.uipath.com/fr/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-open) or [Attach](https://docs.uipath.com/fr/activities/other/latest/ui-automation/uipath-uiautomationnext-api-contracts-iuiautomationappservice-attach). This is the default selection.
  + `HardwareEvents` - Uses the hardware
    driver to perform the action. This is the slowest API, it
    cannot work in the background, but it is compatible with all
    desktop apps.
  + `Simulate` - Simulates the action using
    accessibility APIs. Recommended in browser automation, Java
    apps, or SAP. More reliable than Hardware Events. Sends all
    text in a single action. Works even if the target
    application is not in focus. Please test if your target
    application UI element supports this.
  + `DebuggerApi` - Performs actions using
    debugger APIs. Works for Chromium elements only. Sends all
    text in one go. Works even if the target application is not
    in focus. For more details, check out this [page](https://docs.uipath.com/fr/studio/docs/chromium-api).
  + `WindowMessages` - Sends the mouse and
    keyboard input through Win32 messages. Recommended for
    desktop apps. Usually more reliable than Hardware Events.
    Sends all text in a single action. Works even if target app
    is not in focus. Please test if your target application UI
    element supports this.

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