UiPath Documentation
activities
latest
false
Atividades do UIAutomation
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

IsEnabled

Verifica se um elemento de interface gráfica está habilitado.

Essa API deve ser adicionada após Abrir ou Anexar.

Definição

Namespace: UiPath.UIAutomationNext.API.Models

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

Sobrecarregas

SobrecargaDescription
IsEnabled(String)Verifica se um elemento de interface gráfica está habilitado, identificado por uma string do Repositório de Objetos.
IsEnabled(IElementDescriptor)Verifica se um elemento de interface gráfica está habilitado, identificado por um descritor de um elemento do Repositório de Objetos.
IsEnabled(IElementDescriptor, IsEnabledOptions)Verifica se um elemento de interface gráfica está habilitado, identificado por um descritor de um elemento do Repositório de Objetos, além de outras opções.
IsEnabled(String, IsEnabledOptions)Verifica se um elemento de interface gráfica está habilitado, identificado por uma string do Repositório de Objetos, além de outras opções.
IsEnabled(TargetAnchorableModel, IsEnabledOptions)Verifica se um elemento de interface gráfica está habilitado, identificado pelo objeto TargetAnchorableModel , juntamente com outras opções.
IsEnabled(RuntimeTarget, IsEnabledOptions)Verifica se um elemento de interface gráfica está habilitado, identificado por uma instância de runtime de um elemento do Repositório de Objetos, além de outras opções.

IsEnabled(String)

Verifica se um elemento de interface gráfica está habilitado, identificado por uma string do Repositório de Objetos.

IsEnabled(
    string target)
IsEnabled(
    string target)

target String : o elemento de interface gráfica que você deseja verificar se está habilitado, identificado por uma string do Repositório de objetos.

IsEnabled(IElementDescriptor)

Verifica se um elemento de interface gráfica está habilitado, identificado por um descritor de um elemento do Repositório de Objetos.

IsEnabled(
    IElementDescriptor elementDescriptor)
IsEnabled(
    IElementDescriptor elementDescriptor)

elementDescriptor IElementDescriptor : o elemento de interface gráfica que você deseja verificar se está habilitado, identificado por um descritor de um elemento do Repositório de objetos.

IsEnabled(IElementDescriptor, IsEnabledOptions)

Verifica se um elemento de interface gráfica está habilitado, identificado por um descritor de um elemento do Repositório de Objetos, além de outras opções.

IsEnabled(
    IElementDescriptor elementDescriptor,
    IsEnabledOptions isEnabledOptions)
IsEnabled(
    IElementDescriptor elementDescriptor,
    IsEnabledOptions isEnabledOptions)

elementDescriptor IElementDescriptor : o elemento de interface gráfica que você deseja verificar se está habilitado, identificado por um descritor de um elemento do Repositório de objetos.

isEnabledOptions IsEnabledOptions : opções adicionais para personalizar o processo de verificação. Você pode optar por personalizar:

* `TargetOptions`:
  + `Timeout` - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + `DelayAfter` - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + `DelayBefore` - Delay time (in seconds)
    before the API begins performing any operations. The default
    amount of time is 0.2 seconds (200 milliseconds).
* `TargetOptions`:
  + `Timeout` - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + `DelayAfter` - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + `DelayBefore` - Delay time (in seconds)
    before the API begins performing any operations. The default
    amount of time is 0.2 seconds (200 milliseconds).

IsEnabled(String, IsEnabledOptions)

Verifica se um elemento de interface gráfica está habilitado, identificado por uma string do Repositório de Objetos, além de outras opções.

IsEnabled(
    string target,
    IsEnabledOptions isEnabledOptions)
IsEnabled(
    string target,
    IsEnabledOptions isEnabledOptions)

target String : o elemento de interface gráfica que você deseja verificar se está habilitado, identificado por uma string do Repositório de objetos.

isEnabledOptions IsEnabledOptions : opções adicionais para personalizar o processo de verificação. Você pode optar por personalizar:

* `TargetOptions`:
  + `Timeout` - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + `DelayAfter` - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + `DelayBefore` - Delay time (in seconds)
    before the API begins performing any operations. The default
    amount of time is 0.2 seconds (200 milliseconds).
* `TargetOptions`:
  + `Timeout` - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + `DelayAfter` - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + `DelayBefore` - Delay time (in seconds)
    before the API begins performing any operations. The default
    amount of time is 0.2 seconds (200 milliseconds).

IsEnabled(TargetAnchorableModel, IsEnabledOptions)

Verifica se um elemento de interface gráfica está habilitado, identificado pelo objeto TargetAnchorableModel , juntamente com outras opções.

IsEnabled(
    TargetAnchorableModel target,
    IsEnabledOptions isEnabledOptions)
IsEnabled(
    TargetAnchorableModel target,
    IsEnabledOptions isEnabledOptions)

target TargetAnchorableModel : o elemento de interface gráfica que você deseja verificar se está habilitado, identificado pelo objeto TargetAnchorableModel .

isEnabledOptions IsEnabledOptions : opções adicionais para personalizar o processo de verificação. Você pode optar por personalizar:

* `TargetOptions`:
  + `Timeout` - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + `DelayAfter` - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + `DelayBefore` - Delay time (in seconds)
    before the API begins performing any operations. The default
    amount of time is 0.2 seconds (200 milliseconds).
* `TargetOptions`:
  + `Timeout` - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + `DelayAfter` - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + `DelayBefore` - Delay time (in seconds)
    before the API begins performing any operations. The default
    amount of time is 0.2 seconds (200 milliseconds).

IsEnabled(RuntimeTarget, IsEnabledOptions)

Verifica se um elemento de interface gráfica está habilitado, identificado por uma instância de runtime de um elemento do Repositório de Objetos, além de outras opções.

IsEnabled(
    RuntimeTarget target,
    [IsEnabledOptions isEnabledOptions])
IsEnabled(
    RuntimeTarget target,
    [IsEnabledOptions isEnabledOptions])

target RuntimeTarget : o elemento de interface gráfica que você deseja verificar se está habilitado, identificado por uma instância de runtime de um elemento do Repositório de objetos.

isEnabledOptions IsEnabledOptions : opções adicionais para personalizar o processo de verificação. Você pode optar por personalizar:

* `TargetOptions`:
  + `Timeout` - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + `DelayAfter` - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + `DelayBefore` - Delay time (in seconds)
    before the API begins performing any operations. The default
    amount of time is 0.2 seconds (200 milliseconds).
* `TargetOptions`:
  + `Timeout` - Specifies the amount of time (in
    seconds) to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + `DelayAfter` - Delay time (in seconds) after
    executing the API. The default amount of time is 0.3 seconds
    (300 milliseconds).
  + `DelayBefore` - Delay time (in seconds)
    before the API begins performing any operations. The default
    amount of time is 0.2 seconds (200 milliseconds).

RetornarValor

O valor Verdadeiro ou Falso com base em se o elemento de interface gráfica está habilitado ou não.

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades