UiPath Documentation
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.

Activités UIAutomation

Dernière mise à jour 14 mai 2026

GetText

Extrait et copie le texte d'un élément d'IU.

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
GetText(String)Extrait et copie le texte d'un élément d'IU, identifié comme une chaîne.
GetText(String, GetTextOptions)Extrait et copie le texte d'un élément d'IU, identifié comme une chaîne, tout en personnalisant les Actions d'extraction ( Actions).
GetText(TargetAnchorableModel, GetTextOptions)Extrait et copie le texte d'un élément d'IU, identifié comme un objet Target Anchorable Model , tout en personnalisant les Actions d'extraction ( Actions).

GetText(String)

Extrait et copie le texte d'un élément d'IU, identifié comme une chaîne.

GetText(
    string target)
GetText(
    string target)

target String : indiquez l'élément d'IU capturé dans le référentiel d'objets que vous souhaitez extraire.

GetText(String, GetTextOptions)

Extrait et copie le texte d'un élément d'IU, identifié comme une chaîne, tout en personnalisant les Actions d'extraction ( Actions).

GetText(
    string target, 
    GetTextOptions getTextOptions)
GetText(
    string target, 
    GetTextOptions getTextOptions)

target String : indiquez l'élément d'IU capturé dans le référentiel d'objets que vous souhaitez extraire.

getTextOptions GetTextOptions : options supplémentaires pour personnaliser le processus d'extraction de texte. Vous pouvez choisir de personnaliser :

* `ScrapingOptions
  NScrapingOptions`:
  + `Default`
  + `TextAttribute`
  + `Native` (enables you to **Allow
    formatting** and retrieve the screen coordinates of
    the words)
  + `FullText` (offers the option to
    **Ignore hidden text**)
* `ScrapingAPI NScrapingAPI`
  + `None`
  + `AllowFormatting`
  + `IgnoreHiddenText`
  + `GetWordCoordinates`
* `ScrapingOptions
  NScrapingOptions`:
  + `Default`
  + `TextAttribute`
  + `Native` (enables you to **Allow
    formatting** and retrieve the screen coordinates of
    the words)
  + `FullText` (offers the option to
    **Ignore hidden text**)
* `ScrapingAPI NScrapingAPI`
  + `None`
  + `AllowFormatting`
  + `IgnoreHiddenText`
  + `GetWordCoordinates`

GetText(TargetAnchorableModel, GetTextOptions)

Extrait et copie le texte d'un élément d'IU, identifié comme un objet Target Anchorable Model , tout en personnalisant les Actions d'extraction ( Actions).

GetText(
    TargetAnchorableModel target, 
    GetTextOptions getTextOptions)
GetText(
    TargetAnchorableModel target, 
    GetTextOptions getTextOptions)

TargetAnchorableModel TargetAnchorableModel : indiquez l'élément d'IU identifié comme un TargetAnchorableModel que vous souhaitez extraire.

getTextOptions GetTextOptions : options supplémentaires pour personnaliser le processus d'extraction de texte. Vous pouvez choisir de personnaliser :

* `ScrapingOptions
  NScrapingOptions`:
  + `Default`
  + `TextAttribute`
  + `Native` (enables you to **Allow
    formatting** and retrieve the screen coordinates of
    the words)
  + `FullText` (offers the option to
    **Ignore hidden text**)
* `ScrapingAPI NScrapingAPI`
  + `None`
  + `AllowFormatting`
  + `IgnoreHiddenText`
  + `GetWordCoordinates`
* `ScrapingOptions
  NScrapingOptions`:
  + `Default`
  + `TextAttribute`
  + `Native` (enables you to **Allow
    formatting** and retrieve the screen coordinates of
    the words)
  + `FullText` (offers the option to
    **Ignore hidden text**)
* `ScrapingAPI NScrapingAPI`
  + `None`
  + `AllowFormatting`
  + `IgnoreHiddenText`
  + `GetWordCoordinates`

RetournerValeur

Le texte de l'élément d'IU spécifié.

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