activities
latest
false
Importante :
Este contenido se ha localizado parcialmente a partir de un sistema de traducción automática. La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.
UiPath logo, featuring letters U and I in white

Actividades UIAutomation

Última actualización 13 de mar. de 2026

EsperarEstado

Comprueba el estado de una aplicación o navegador web verificando si un elemento aparece o desaparece de la interfaz de usuario.

Esta API debe añadirse después de Abrir o Adjuntar.

Definición

Espacio de nombres: UiPath.UIAutomationNext.API.Models

Ensamblado: UiPath.UIAutomationNext.API.Models (en UiPath.UIAutomationNext.API.Models dll)

Sobrecargas

SobrecargaDescripción
WaitState(String, NClickStateMode, Double)Comprueba el estado de una aplicación o navegador web verificando si un elemento (identificado como una cadena del Repositorio de objetos) aparece o desaparece de la interfaz de usuario, y elige el número de segundos de espera.
WaitState(String, CheckStateOptions)Comprueba el estado de una aplicación o navegador web verificando si un elemento (identificado como una cadena del Repositorio de objetos) aparece o desaparece de la interfaz de usuario, y elige el número de segundos de espera para el evento, junto con otras configuraciones.
WaitState(TargetAnchorableModel, CheckStateOptions)Comprueba el estado de una aplicación o navegador web verificando si un elemento (identificado como objeto TargetAnchorableModel ) aparece o desaparece de la interfaz de usuario, junto con otras configuraciones.
WaitState(TargetAnchorableModel, NCheckStateMode, Double)Comprueba el estado de una aplicación o navegador web verificando si un elemento (identificado como un objeto TargetAnchorableModel ) aparece o desaparece de la interfaz de usuario, junto con el número de segundos de espera para el evento.

WaitState(String, NClickStateMode, Double)

Comprueba el estado de una aplicación o navegador web verificando si un elemento (identificado como una cadena del Repositorio de objetos) aparece o desaparece de la interfaz de usuario, y elige el número de segundos de espera.

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

target Cadena : el elemento de la IU cuyo estado quieres comprobar, identificado como una cadena del Repositorio de objetos.

checkStateMode NCheckStateMode : selecciona qué evento usar para determinar el estado de la aplicación o del navegador:

* `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 Doble : especifica el número de segundos que se debe esperar para que el evento (elemento aparezca o desaparezca). El valor predeterminado es 5 segundos.

WaitState(String, CheckStateOptions)

Comprueba el estado de una aplicación o navegador web verificando si un elemento (identificado como una cadena del Repositorio de objetos) aparece o desaparece de la interfaz de usuario, y elige el número de segundos de espera para el evento, junto con otras configuraciones.

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

target Cadena : el elemento de la IU cuyo estado quieres comprobar, identificado como una cadena del Repositorio de objetos.

checkStateOptions NCheckStateMode : elige las siguientes opciones:

* `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)

Comprueba el estado de una aplicación o navegador web verificando si un elemento (identificado como objeto TargetAnchorableModel ) aparece o desaparece de la interfaz de usuario, junto con otras configuraciones.

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

target TargetAnchorableModel : el elemento de la IU cuyo estado quieres comprobar, identificado como un objeto TargetAnchorableModel .

checkStateOptions NCheckStateMode : elige las siguientes opciones:

* `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)

Comprueba el estado de una aplicación o navegador web verificando si un elemento (identificado como un objeto TargetAnchorableModel ) aparece o desaparece de la interfaz de usuario, junto con el número de segundos de espera para el evento.

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

target TargetAnchorableModel : el elemento de la IU cuyo estado quieres comprobar, identificado como un objeto TargetAnchorableModel .

checkStateMode NCheckStateMode : selecciona qué evento usar para determinar el estado de la aplicación o del navegador:

* `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 Doble : especifica el número de segundos que se debe esperar para que el evento (elemento aparezca o desaparezca). El valor predeterminado es 5 segundos.

ValorDeRetorno

Indica si el elemento existe o no.

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte

¿Quiere aprender? UiPath Academy

¿Tiene alguna pregunta? Foro de UiPath

Manténgase actualizado