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.

Hover

Passa o mouse sobre um elemento de interface gráfica especificado.

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
Hover(IElementDescriptor, Double, CursorMotionType)Passe o mouse sobre um elemento de interface gráfica especificado, identificado por um descritor de um elemento do Repositório de Objetos, enquanto especifica o tempo de focalização e o tipo de movimento do cursor.
Hover(String, Double, CursorMotionType)Passe o mouse sobre um elemento de interface gráfica especificado, identificado por uma string do Repositório de Objetos, enquanto especifica o tempo de focalização e o tipo de movimento do cursor.
Hover(TargetAnchorableModel, HoverOptions)Passa o mouse sobre um elemento de interface gráfica especificado, identificado pelo objeto TargetAnchorableModel , enquanto personaliza a ação de passar o mouse.
Hover(IElementDescriptor, HoverOptions)Passa o mouse sobre um elemento de interface gráfica especificado, identificado por um descritor de um elemento do Repositório de Objetos, ao personalizar a ação de passar o mouse.
Hover(String, HoverOptions)Passa o mouse sobre um elemento de interface gráfica especificado, identificado por uma string do Repositório de Objetos, ao personalizar a ação de focalizar.
Hover(RuntimeTarget, HoverOptions)Passa o mouse sobre um elemento de interface gráfica especificado, identificado por uma instância de runtime de um elemento do Repositório de Objetos, ao personalizar a ação de focalizar.
Hover(TargetAnchorableModel, Double, CursorMotionType)Passa o mouse sobre um elemento de interface gráfica especificado, identificado pelo objeto TargetAnchorableModel , enquanto especifica o tempo de focalização e o tipo de movimento do cursor.

Hover(IElementDescriptor, Double, CursorMotionType)

Passe o mouse sobre um elemento de interface gráfica especificado, identificado por um descritor de um elemento do Repositório de Objetos, enquanto especifica o tempo de focalização e o tipo de movimento do cursor.

Hover(
    IElementDescriptor elementDescriptor,
    double hoverTime,
    CursorMotionType cursorMotionType)
Hover(
    IElementDescriptor elementDescriptor,
    double hoverTime,
    CursorMotionType cursorMotionType)

elementDescriptor IElementDescriptor : o elemento de interface gráfica no qual você deseja focalizar, identificado por um descritor de um elemento do Repositório de objetos.

hoverTime Double : o número de segundos para focalizar o elemento de destino. O valor padrão é de 1 segundo.

cursorMotionType CursorMotionType : Especifica o tipo de movimento realizado pelo cursor do mouse. Há duas opções disponíveis:

* **Instant** - The
  cursor jumps to the destination. By default, **Instant** is
  selected.
* **Smooth** - The
  cursor moves gradually towards the destination.
* **Instant** - The
  cursor jumps to the destination. By default, **Instant** is
  selected.
* **Smooth** - The
  cursor moves gradually towards the destination.

Hover(String, Double, CursorMotionType)

Passe o mouse sobre um elemento de interface gráfica especificado, identificado por uma string do Repositório de Objetos, enquanto especifica o tempo de focalização e o tipo de movimento do cursor.

Hover(
    string target,
    double hoverTime,
    CursorMotionType cursorMotionType)
Hover(
    string target,
    double hoverTime,
    CursorMotionType cursorMotionType)

target String : o elemento de interface gráfica no qual você deseja focalizar, identificado por uma string do Repositório de objetos.

hoverTime Double : o número de segundos para focalizar o elemento de destino. O valor padrão é de 1 segundo.

cursorMotionType CursorMotionType : Especifica o tipo de movimento realizado pelo cursor do mouse. Há duas opções disponíveis:

* **Instant** - The cursor jumps to the destination. By default,
  **Instant** is selected.
* **Smooth** - The cursor moves gradually towards the
  destination.
* **Instant** - The cursor jumps to the destination. By default,
  **Instant** is selected.
* **Smooth** - The cursor moves gradually towards the
  destination.

Hover(TargetAnchorableModel, HoverOptions)

Passa o mouse sobre um elemento de interface gráfica especificado, identificado pelo objeto TargetAnchorableModel , enquanto personaliza a ação de passar o mouse.

Hover(
    TargetAnchorableModel target,
    HoverOptions hoverOptions)
Hover(
    TargetAnchorableModel target,
    HoverOptions hoverOptions)

target TargetAnchorableModel : o elemento de interface gráfica no qual você deseja focalizar, identificado pelo objeto TargetAnchorableModel .

hoverOptions HoverOptions : opções adicionais para personalizar a ação de focalizar. 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).
* `HoverTime` - The number of seconds for which to
  hover the target element. The default value is 1 second.
* `CursorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `VerifyOptions` - At runtime, verifies if the action
  performed by the API was correct. This is done by indicating an
  element that should appear or disappear after the action is
  performed, which is monitored and verified after the API is
  executed.
* `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).
* `HoverTime` - The number of seconds for which to
  hover the target element. The default value is 1 second.
* `CursorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `VerifyOptions` - At runtime, verifies if the action
  performed by the API was correct. This is done by indicating an
  element that should appear or disappear after the action is
  performed, which is monitored and verified after the API is
  executed.

Hover(IElementDescriptor, HoverOptions)

Passa o mouse sobre um elemento de interface gráfica especificado, identificado por um descritor de um elemento do Repositório de Objetos, ao personalizar a ação de passar o mouse.

Hover(
    IElementDescriptor elementDescriptor,
    HoverOptions hoverOptions)
Hover(
    IElementDescriptor elementDescriptor,
    HoverOptions hoverOptions)

elementDescriptor IElementDescriptor : o elemento de interface gráfica no qual você deseja focalizar, identificado por um descritor de um elemento do Repositório de objetos.

hoverOptions HoverOptions : opções adicionais para personalizar a ação de focalizar. 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).
* `HoverTime` - The number of seconds for which to
  hover the target element. The default value is 1 second.
* `CursorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `VerifyOptions` - At runtime, verifies if the action
  performed by the API was correct. This is done by indicating an
  element that should appear or disappear after the action is
  performed, which is monitored and verified after the API is
  executed.
* `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).
* `HoverTime` - The number of seconds for which to
  hover the target element. The default value is 1 second.
* `CursorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `VerifyOptions` - At runtime, verifies if the action
  performed by the API was correct. This is done by indicating an
  element that should appear or disappear after the action is
  performed, which is monitored and verified after the API is
  executed.

Hover(String, HoverOptions)

Passa o mouse sobre um elemento de interface gráfica especificado, identificado por uma string do Repositório de Objetos, ao personalizar a ação de focalizar.

Hover(
    string target,
    HoverOptions hoverOptions)
Hover(
    string target,
    HoverOptions hoverOptions)

target String : o elemento de interface gráfica no qual você deseja focalizar, identificado por uma string do Repositório de objetos.

hoverOptions HoverOptions : opções adicionais para personalizar a ação de focalizar. 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).
* `HoverTime` - The number of seconds for which to
  hover the target element. The default value is 1 second.
* `CursorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `VerifyOptions` - At runtime, verifies if the action
  performed by the API was correct. This is done by indicating an
  element that should appear or disappear after the action is
  performed, which is monitored and verified after the API is
  executed.
* `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).
* `HoverTime` - The number of seconds for which to
  hover the target element. The default value is 1 second.
* `CursorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `VerifyOptions` - At runtime, verifies if the action
  performed by the API was correct. This is done by indicating an
  element that should appear or disappear after the action is
  performed, which is monitored and verified after the API is
  executed.

Hover(RuntimeTarget, HoverOptions)

Passa o mouse sobre um elemento de interface gráfica especificado, identificado por uma instância de runtime de um elemento do Repositório de Objetos, ao personalizar a ação de focalizar.

Hover(
    RuntimeTarget target,
    HoverOptions hoverOptions)
Hover(
    RuntimeTarget target,
    HoverOptions hoverOptions)

target RuntimeTarget : o elemento de interface gráfica no qual você deseja focalizar, identificado por uma instância de runtime de um elemento do Repositório de objetos.

hoverOptions HoverOptions : opções adicionais para personalizar a ação de focalizar. 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).
* `HoverTime` - The number of seconds for which to
  hover the target element. The default value is 1 second.
* `CursorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `VerifyOptions` - At runtime, verifies if the action
  performed by the API was correct. This is done by indicating an
  element that should appear or disappear after the action is
  performed, which is monitored and verified after the API is
  executed.
* `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).
* `HoverTime` - The number of seconds for which to
  hover the target element. The default value is 1 second.
* `CursorMotionType` - Specifies the type of motion
  performed by the mouse cursor. There are two available options:
  + **Instant** - The cursor jumps to the destination. By
    default, **Instant** is selected.
  + **Smooth** - The cursor moves gradually towards the
    destination.
* `VerifyOptions` - At runtime, verifies if the action
  performed by the API was correct. This is done by indicating an
  element that should appear or disappear after the action is
  performed, which is monitored and verified after the API is
  executed.

Hover(TargetAnchorableModel, Double, CursorMotionType)

Passa o mouse sobre um elemento de interface gráfica especificado, identificado pelo objeto TargetAnchorableModel , enquanto especifica o tempo de focalização e o tipo de movimento do cursor.

Hover(
    TargetAnchorableModel target,
    double hoverTime,
    [CursorMotionType cursorMotionType])
Hover(
    TargetAnchorableModel target,
    double hoverTime,
    [CursorMotionType cursorMotionType])

target TargetAnchorableModel : o elemento de interface gráfica no qual você deseja focalizar, identificado pelo objeto TargetAnchorableModel .

hoverTime Double : o número de segundos para focalizar o elemento de destino. O valor padrão é de 1 segundo.

cursorMotionType CursorMotionType : Especifica o tipo de movimento realizado pelo cursor do mouse. Há duas opções disponíveis:

* **Instant** - The cursor jumps to the destination. By default,
  **Instant** is selected.
* **Smooth** - The cursor moves gradually towards the
  destination.
* **Instant** - The cursor jumps to the destination. By default,
  **Instant** is selected.
* **Smooth** - The cursor moves gradually towards the
  destination.

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