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.

Mouse Scroll

MouseScroll na API de automação codificada UIAutomation: permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado.

Habilita a rolagem em aplicativos enviando eventos de rolagem do mouse para o 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
MouseScroll(TargetAnchorableModel)Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado pelo objeto TargetAnchorableModel.
MouseScroll(TargetAnchorableModel, String)Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado pelo objeto TargetAnchorableModel, enquanto especifica o destino para o qual rolar.
MouseScroll(IElementDescriptor, MouseScrollOptions)Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por um descritor de um elemento do Repositório de objetos, enquanto personaliza a ação de rolagem do mouse.
MouseScroll(TargetAnchorableModel, MouseScrollOptions)Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado pelo objeto TargetAnchorableModel, enquanto personaliza a ação de rolagem do mouse.
MouseScroll(String, MouseScrollOptions)Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por uma string do Repositório de objetos, enquanto personaliza a ação de rolagem do mouse.
MouseScroll(RuntimeTarget, MouseScrollOptions)Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por uma instância de runtime de um elemento do Repositório de objetos, enquanto personaliza a ação de rolagem do mouse.
MouseScroll(String, String, NScrollDirection, Int32)Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por uma string do Repositório de objetos, enquanto especifica o destino para o qual rolar, a direção de rolagem e o número de detenções da roda do mouse.
MouseScroll(IElementDescriptor, IElementDescriptor, NScrollDirection, Int32)Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por um descritor de um elemento do Repositório de objetos, enquanto especifica o descritor do elemento para o qual rolar, a direção de rolagem e o número de detenções da roda do mouse.
MouseScroll(String, NScrollDirection, Int32)Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por uma string do Repositório de objetos, enquanto especifica a direção de rolagem e o número de detenções da roda do mouse.
MouseScroll(IElementDescriptor, NScrollDirection, Int32)Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por um descritor de um elemento do Repositório de objetos, enquanto especifica a direção de rolagem e o número de detenções da roda do mouse.

MouseScroll(TargetAnchorableModel)

Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado pelo objeto TargetAnchorableModel.

MouseScroll(
    TargetAnchorableModel target)
MouseScroll(
    TargetAnchorableModel target)

target TargetAnchorableModel: The UI element that you send mouse scroll events to, identified by the TargetAnchorableModel object.

MouseScroll(TargetAnchorableModel, String)

Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado pelo objeto TargetAnchorableModel, enquanto especifica o destino para o qual rolar.

MouseScroll(
    TargetAnchorableModel target,
    string searchedTarget)
MouseScroll(
    TargetAnchorableModel target,
    string searchedTarget)

target TargetAnchorableModel: The UI element that you send mouse scroll events to, identified by the TargetAnchorableModel object.

searchedTarget String: The target to scroll into, identified by a string from Object Repository.

MouseScroll(IElementDescriptor, MouseScrollOptions)

Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por um descritor de um elemento do Repositório de objetos, enquanto personaliza a ação de rolagem do mouse.

MouseScroll(
    IElementDescriptor elementDescriptor,
    MouseScrollOptions mouseScrollOptions)
MouseScroll(
    IElementDescriptor elementDescriptor,
    MouseScrollOptions mouseScrollOptions)

elementDescriptor IElementDescriptor: The UI element that you send mouse scroll events to, identified by a descriptor of an element from Object Repository.

mouseScrollOptions MouseScrollOptions: Additional options to customize the mouse scroll action. You can choose to customize:

* `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).
* `NChildInteractionMode` - The type of the interaction to use performing the actions.
* `CusorMotionType` - 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.
* `NKeyModifiers` - Add one or more key modifiers to use in combination with the scroll. The following options are available: **None**, **Alt**, **Ctrl**, **Shift**, and **Win**. The default option is **None**.
* `NScrollDirection` - The direction in which you want the scroll to be performed. The following options are available:
  **Left**, **Up**, **Right**, **Down**.
* `MovementUnits` - The amount of mouse wheel detents you want to scroll. The default is set to 10.
* `SearchedElementOptions` - The indicated UI element that you want to scroll to.
* `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).
* `NChildInteractionMode` - The type of the interaction to use performing the actions.
* `CusorMotionType` - 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.
* `NKeyModifiers` - Add one or more key modifiers to use in combination with the scroll. The following options are available: **None**, **Alt**, **Ctrl**, **Shift**, and **Win**. The default option is **None**.
* `NScrollDirection` - The direction in which you want the scroll to be performed. The following options are available:
  **Left**, **Up**, **Right**, **Down**.
* `MovementUnits` - The amount of mouse wheel detents you want to scroll. The default is set to 10.
* `SearchedElementOptions` - The indicated UI element that you want to scroll to.

MouseScroll(TargetAnchorableModel, MouseScrollOptions)

Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado pelo objeto TargetAnchorableModel, enquanto personaliza a ação de rolagem do mouse.

MouseScroll(
    TargetAnchorableModel target,
    MouseScrollOptions mouseScrollOptions)
MouseScroll(
    TargetAnchorableModel target,
    MouseScrollOptions mouseScrollOptions)

target TargetAnchorableModel: The UI element that you send mouse scroll events to, identified by the TargetAnchorableModel object.

mouseScrollOptions MouseScrollOptions: Additional options to customize the mouse scroll action. You can choose to customize:

* `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).
* `NChildInteractionMode` - The type of the interaction to use performing the actions.
* `CusorMotionType` - 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.
* `NKeyModifiers` - Add one or more key modifiers to use in combination with the scroll. The following options are available: **None**, **Alt**, **Ctrl**, **Shift**, and **Win**. The default option is **None**.
* `NScrollDirection` - The direction in which you want the scroll to be performed. The following options are available:
  **Left**, **Up**, **Right**, **Down**.
* `MovementUnits` - The amount of mouse wheel detents you want to scroll. The default is set to 10.
* `SearchedElementOptions` - The indicated UI element that you want to scroll to.
* `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).
* `NChildInteractionMode` - The type of the interaction to use performing the actions.
* `CusorMotionType` - 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.
* `NKeyModifiers` - Add one or more key modifiers to use in combination with the scroll. The following options are available: **None**, **Alt**, **Ctrl**, **Shift**, and **Win**. The default option is **None**.
* `NScrollDirection` - The direction in which you want the scroll to be performed. The following options are available:
  **Left**, **Up**, **Right**, **Down**.
* `MovementUnits` - The amount of mouse wheel detents you want to scroll. The default is set to 10.
* `SearchedElementOptions` - The indicated UI element that you want to scroll to.

MouseScroll(String, MouseScrollOptions)

Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por uma string do Repositório de objetos, enquanto personaliza a ação de rolagem do mouse.

MouseScroll(
    string target,
    MouseScrollOptions mouseScrollOptions)
MouseScroll(
    string target,
    MouseScrollOptions mouseScrollOptions)

target String: The UI element that you send mouse scroll events to, identified by a string from Object Repository.

mouseScrollOptions MouseScrollOptions: Additional options to customize the mouse scroll action. You can choose to customize:

* `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).
* `NChildInteractionMode` - The type of the interaction to use performing the actions.
* `CusorMotionType` - 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.
* `NKeyModifiers` - Add one or more key modifiers to use in combination with the scroll. The following options are available: **None**, **Alt**, **Ctrl**, **Shift**, and **Win**. The default option is **None**.
* `NScrollDirection` - The direction in which you want the scroll to be performed. The following options are available:
  **Left**, **Up**, **Right**, **Down**.
* `MovementUnits` - The amount of mouse wheel detents you want to scroll. The default is set to 10.
* `SearchedElementOptions` - The indicated UI element that you want to scroll to.
* `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).
* `NChildInteractionMode` - The type of the interaction to use performing the actions.
* `CusorMotionType` - 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.
* `NKeyModifiers` - Add one or more key modifiers to use in combination with the scroll. The following options are available: **None**, **Alt**, **Ctrl**, **Shift**, and **Win**. The default option is **None**.
* `NScrollDirection` - The direction in which you want the scroll to be performed. The following options are available:
  **Left**, **Up**, **Right**, **Down**.
* `MovementUnits` - The amount of mouse wheel detents you want to scroll. The default is set to 10.
* `SearchedElementOptions` - The indicated UI element that you want to scroll to.

MouseScroll(RuntimeTarget, MouseScrollOptions)

Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por uma instância de runtime de um elemento do Repositório de objetos, enquanto personaliza a ação de rolagem do mouse.

MouseScroll(
    RuntimeTarget target,
    MouseScrollOptions mouseScrollOptions)
MouseScroll(
    RuntimeTarget target,
    MouseScrollOptions mouseScrollOptions)

target RuntimeTarget: The UI element that you send mouse scroll events to, identified by a runtime instance of an Object Repository element.

mouseScrollOptions MouseScrollOptions: Additional options to customize the mouse scroll action. You can choose to customize:

* `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).
* `NChildInteractionMode` - The type of the interaction to use performing the actions.
* `CusorMotionType` - 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.
* `NKeyModifiers` - Add one or more key modifiers to use in combination with the scroll. The following options are available: **None**, **Alt**, **Ctrl**, **Shift**, and **Win**. The default option is **None**.
* `NScrollDirection` - The direction in which you want the scroll to be performed. The following options are available:
  **Left**, **Up**, **Right**, **Down**.
* `MovementUnits` - The amount of mouse wheel detents you want to scroll. The default is set to 10.
* `SearchedElementOptions` - The indicated UI element that you want to scroll to.
* `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).
* `NChildInteractionMode` - The type of the interaction to use performing the actions.
* `CusorMotionType` - 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.
* `NKeyModifiers` - Add one or more key modifiers to use in combination with the scroll. The following options are available: **None**, **Alt**, **Ctrl**, **Shift**, and **Win**. The default option is **None**.
* `NScrollDirection` - The direction in which you want the scroll to be performed. The following options are available:
  **Left**, **Up**, **Right**, **Down**.
* `MovementUnits` - The amount of mouse wheel detents you want to scroll. The default is set to 10.
* `SearchedElementOptions` - The indicated UI element that you want to scroll to.

MouseScroll(String, String, NScrollDirection, Int32)

Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por uma string do Repositório de objetos, enquanto especifica o destino para o qual rolar, a direção de rolagem e o número de detenções da roda do mouse.

MouseScroll(
    string target,
    string searchedTarget,
    [NScrollDirection direction],
    [int movementUnits])
MouseScroll(
    string target,
    string searchedTarget,
    [NScrollDirection direction],
    [int movementUnits])

target String: The UI element that you send mouse scroll events to, identified by a string from Object Repository.

searchedTarget String: The target to scroll into, identified by a string from Object Repository.

direction NScrollDirection: The direction in which you want the scroll to be performed. The following options are available: Left, Up, Right, Down.

movementUnits Int32: The amount of mouse wheel detents you want to scroll. The default is set to 10.

MouseScroll(IElementDescriptor, IElementDescriptor, NScrollDirection, Int32)

Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por um descritor de um elemento do Repositório de objetos, enquanto especifica o descritor do elemento para o qual rolar, a direção de rolagem e o número de detenções da roda do mouse.

MouseScroll(
    IElementDescriptor elementDescriptor,
    IElementDescriptor searchedelementDescriptor,
    [NScrollDirection direction],
    [int movementUnits])
MouseScroll(
    IElementDescriptor elementDescriptor,
    IElementDescriptor searchedelementDescriptor,
    [NScrollDirection direction],
    [int movementUnits])

elementDescriptor IElementDescriptor: The UI element that you send mouse scroll events to, identified by a descriptor of an element from Object Repository.

searchedelementDescriptor IElementDescriptor: The element descriptor to scroll into.

direction NScrollDirection: The direction in which you want the scroll to be performed. The following options are available: Left, Up, Right, Down.

movementUnits Int32: The amount of mouse wheel detents you want to scroll. The default is set to 10.

MouseScroll(String, NScrollDirection, Int32)

Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por uma string do Repositório de objetos, enquanto especifica a direção de rolagem e o número de detenções da roda do mouse.

MouseScroll(
    string target,
    [NScrollDirection direction],
    [int movementUnits])
MouseScroll(
    string target,
    [NScrollDirection direction],
    [int movementUnits])

target String: The UI element that you send mouse scroll events to, identified by a string from Object Repository.

direction NScrollDirection: The direction in which you want the scroll to be performed. The following options are available: Left, Up, Right, Down.

movementUnits Int32: The amount of mouse wheel detents you want to scroll. The default is set to 10.

MouseScroll(IElementDescriptor, NScrollDirection, Int32)

Permite a rolagem em aplicativos enviando eventos de rolagem do mouse para o elemento de interface gráfica especificado, identificado por um descritor de um elemento do Repositório de objetos, enquanto especifica a direção de rolagem e o número de detenções da roda do mouse.

MouseScroll(
    IElementDescriptor elementDescriptor,
    [NScrollDirection direction],
    [int movementUnits])
MouseScroll(
    IElementDescriptor elementDescriptor,
    [NScrollDirection direction],
    [int movementUnits])

elementDescriptor IElementDescriptor: The UI element that you send mouse scroll events to, identified by a descriptor of an element from Object Repository.

direction NScrollDirection: The direction in which you want the scroll to be performed. The following options are available: Left, Up, Right, Down.

movementUnits Int32: The amount of mouse wheel detents you want to scroll. The default is set to 10.

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