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

ÉtatAttente

Vérifie l'état d'une application ou d'un navigateur Web en vérifiant si un élément apparaît ou disparaît de l'interface utilisateur.

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
WaitState(String, NClickStateMode, Double)Vérifie l’état d’une application ou d’un navigateur Web en vérifiant si un élément (identifié comme une chaîne du référentiel d’objets) apparaît ou disparaît de l’interface utilisateur, et choisit le nombre de secondes d’attente pour l’événement.
WaitState(String, CheckStateOptions)Vérifie l’état d’une application ou d’un navigateur Web en vérifiant si un élément (identifié comme une chaîne du référentiel d’objets) apparaît ou disparaît de l’interface utilisateur, et choisit le nombre de secondes d’attente de l’événement, ainsi que d’autres configurations.
WaitState(TargetAnchorableModel, CheckStateOptions)Vérifie l'état d'une application ou d'un navigateur Web en vérifiant si un élément (identifié comme un objet TargetAnchorableModel ) apparaît ou disparaît de l'interface utilisateur, avec d'autres configurations.
WaitState(TargetAnchorableModel, NCheckStateMode, Double)Vérifie l'état d'une application ou d'un navigateur Web en vérifiant si un élément (identifié comme un objet TargetAnchorableModel ) apparaît ou disparaît de l'interface utilisateur, ainsi que le nombre de secondes d'attente de l'événement.

WaitState(String, NClickStateMode, Double)

Vérifie l’état d’une application ou d’un navigateur Web en vérifiant si un élément (identifié comme une chaîne du référentiel d’objets) apparaît ou disparaît de l’interface utilisateur, et choisit le nombre de secondes d’attente pour l’événement.

bool WaitState(
    string target,
    NCheckStateMode checkStateMode,
    double timeout)
bool WaitState(
    string target,
    NCheckStateMode checkStateMode,
    double timeout)

target Chaîne : l'élément d'IU dont vous souhaitez vérifier l'état, identifié sous la forme d'une chaîne du référentiel d'objets.

checkStateMode NCheckStateMode : sélectionnez l'événement à utiliser pour déterminer l'état de l'application ou du navigateur :

* `WaitAppear` - Wait for the element to appear in the
  user interface.
* `WaitDissapear` - Wait for the element to disappear
  from the user interface.
* `WaitAppear` - Wait for the element to appear in the
  user interface.
* `WaitDissapear` - Wait for the element to disappear
  from the user interface.

timeout Double : spécifiez le nombre de secondes pendant lesquelles attendre l'événement (élément pour apparaître ou disparaître). La valeur par défaut est 5 secondes.

WaitState(String, CheckStateOptions)

Vérifie l’état d’une application ou d’un navigateur Web en vérifiant si un élément (identifié comme une chaîne du référentiel d’objets) apparaît ou disparaît de l’interface utilisateur, et choisit le nombre de secondes d’attente de l’événement, ainsi que d’autres configurations.

bool WaitState( 
    string target,
    CheckStateOptions checkStateOptions)
bool WaitState( 
    string target,
    CheckStateOptions checkStateOptions)

target Chaîne : l'élément d'IU dont vous souhaitez vérifier l'état, identifié sous la forme d'une chaîne du référentiel d'objets.

checkStateOptions NCheckStateMode : Choisissez les options suivantes :

* `checkStateMode NCheckStateMode` - Select which event
  to use for determining the state of the application or browser:
  + `WaitAppear` - Wait for the element to appear
    in the user interface.
  + `WaitDissapear` - Wait for the element to
    disappear from the user interface.
* `timeout Double` - Specify the number of seconds for
  which to wait for the event (element to appear or to disappear). The
  default value is 5 seconds.
* `checkStateMode NCheckStateMode` - Select which event
  to use for determining the state of the application or browser:
  + `WaitAppear` - Wait for the element to appear
    in the user interface.
  + `WaitDissapear` - Wait for the element to
    disappear from the user interface.
* `timeout Double` - Specify the number of seconds for
  which to wait for the event (element to appear or to disappear). The
  default value is 5 seconds.

WaitState(TargetAnchorableModel, CheckStateOptions)

Vérifie l'état d'une application ou d'un navigateur Web en vérifiant si un élément (identifié comme un objet TargetAnchorableModel ) apparaît ou disparaît de l'interface utilisateur, avec d'autres configurations.

bool WaitState(
    TargetAnchorableModel target,
    CheckStateOptions checkStateOptions)
bool WaitState(
    TargetAnchorableModel target,
    CheckStateOptions checkStateOptions)

target TargetAnchorableModel : l'élément d'IU dont vous souhaitez vérifier l'état, identifié comme un objet TargetAnchorableModel .

checkStateOptions NCheckStateMode : Choisissez les options suivantes :

* `checkStateMode NCheckStateMode` - Select which event
  to use for determining the state of the application or browser:
  + `WaitAppear` - Wait for the element to appear
    in the user interface.
  + `WaitDissapear` - Wait for the element to
    disappear from the user interface.
* `timeout Double` - Specify the number of seconds for
  which to wait for the event (element to appear or to disappear). The
  default value is 5 seconds.
* `checkStateMode NCheckStateMode` - Select which event
  to use for determining the state of the application or browser:
  + `WaitAppear` - Wait for the element to appear
    in the user interface.
  + `WaitDissapear` - Wait for the element to
    disappear from the user interface.
* `timeout Double` - Specify the number of seconds for
  which to wait for the event (element to appear or to disappear). The
  default value is 5 seconds.

WaitState(TargetAnchorableModel, NCheckStateMode, Double)

Vérifie l'état d'une application ou d'un navigateur Web en vérifiant si un élément (identifié comme un objet TargetAnchorableModel ) apparaît ou disparaît de l'interface utilisateur, ainsi que le nombre de secondes d'attente de l'événement.

bool WaitState(
    TargetAnchorableModel target,
    NCheckStateMode checkStateMode,
    [double timeout])
bool WaitState(
    TargetAnchorableModel target,
    NCheckStateMode checkStateMode,
    [double timeout])

target TargetAnchorableModel : l'élément d'IU dont vous souhaitez vérifier l'état, identifié comme un objet TargetAnchorableModel .

checkStateMode NCheckStateMode : sélectionnez l'événement à utiliser pour déterminer l'état de l'application ou du navigateur :

* `WaitAppear` - Wait for the element to appear in the
  user interface.
* `WaitDissapear` - Wait for the element to disappear
  from the user interface.
* `WaitAppear` - Wait for the element to appear in the
  user interface.
* `WaitDissapear` - Wait for the element to disappear
  from the user interface.

timeout Double : spécifiez le nombre de secondes pendant lesquelles attendre l'événement (élément pour apparaître ou disparaître). La valeur par défaut est 5 secondes.

RetournerValeur

Indique si l’élément existe ou non.

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