- Información general
- Automatización de IU
- Acerca del paquete de actividades de automatización de IU
- Aplicaciones y tecnologías automatizadas con UI Automation
- Compatibilidad de proyectos
- UI-ANA-016: Introducir URL para abrir el navegador
- UI-ANA-017: ContinueOnError verdadero
- UI-ANA-018: enumerar actividades de OCR / imagen
- UI-DBP-006: uso del contenedor
- UI-DBP-013: uso incorrecto de la automatización de Excel
- UI-DBP-030: uso de variables prohibidas en selectores
- UI-DBP-031: verificación de actividad
- UI-PRR-001: Simular clic
- UI-PRR-002: Simular tipo
- UI-PRR-003: uso incorrecto de aplicación abierta
- UI-PRR-004: retrasos codificados
- UI-REL-001: Idx grande en selectores
- UI-SEC-004: datos de correo electrónico del selector
- UI-SEC-010: Restricciones de aplicaciones / URL
- UI-USG-011: atributos no permitidos
- UX-SEC-010: restricciones de aplicaciones / URL
- UX-DBP-029: uso no seguro de contraseña
- UI-PST-001: nivel de registro de auditoría en la configuración del proyecto
- Herramienta de migración del navegador de UiPath
- Recorte de región
- Grabadora de Computer Vision
- Acerca de la automatización de imágenes y texto
- Actividades con el ratón y el teclado
- Ejemplo de uso de la automatización de ratón y teclado
- Actividades de texto
- Ejemplo de uso de la automatización de texto
- Actividades de OCR
- Actividades de imagen
- Ejemplo de uso de la automatización de OCR y la automatización de imágenes
- Índice de actividades
- Activar
- Base de anclaje
- Asociar navegador
- Asociar ventana
- Bloquear entrada de usuario
- Aviso
- Comprobar
- Clic
- Clic en imagen
- Desencadenador de clic de imagen
- Clic en texto OCR
- Clic en el texto
- Desencadenador de clic
- Cerrar aplicación
- Cerrar pestaña
- Cerrar ventana
- Anclaje consciente de contexto
- Copiar texto seleccionado
- Desencadenador de cambio del atributo del elemento
- Elemento existente
- Ámbito del elemento
- Desencadenador de cambio de estado de elemento
- Exportar el árbol de la IU
- Extraer datos estructurados
- Buscar elementos secundarios
- Buscar elemento
- Buscar imagen
- Buscar coincidencias de imágenes
- Buscar texto OCR
- Buscar elemento relativo
- Buscar posición de texto
- Obtener ventana activa
- Obtener antecesor
- Obtener atributo
- Obtener información de atributo
- Obtener a partir del portapapeles
- Obtener texto completo
- Obtener texto OCR
- Obtener contraseña
- Obtener posición
- Obtener elemento de origen
- Obtener texto
- Obtener texto visible
- Volver
- Avanzar
- Ir a inicio
- Google Cloud Vision OCR
- Ocultar ventana
- Resaltar
- Desencadenador de tecla de acceso rápido
- Mantener el puntero
- Mantener el puntero en imagen
- Mantener el puntero sobre texto OCR
- Mantener el puntero en el texto
- Imagen existente
- Indicar en pantalla
- Insertar código .NET
- Inject Js Script
- Invocar método de ActiveX
- Desencadenador de pulsación de tecla
- Cargar imagen
- Maximizar ventana
- Microsoft Azure Computer Vision OCR
- Microsoft OCR
- Microsoft Project Oxford Online OCR
- Minimizar ventana
- Supervisar eventos
- Desencadenador del ratón
- Mover ventana
- Ir a
- Texto OCR existente
- Apariencia en elemento
- Fuga en elemento
- Apariencia en imagen
- Fuga en imagen
- Abrir aplicación
- Abrir navegador
- Actualizar navegador
- Reproducir evento de usuario
- Restaurar ventana
- Guardar imagen
- Seleccionar elemento
- Seleccionar varios elementos
- Enviar tecla de acceso rápido
- Establecer región de recorte
- Establecer foco
- Establecer texto
- Establecer en portapapeles
- Establecer atributo web
- Mostrar ventana
- Iniciar proceso
- Desencadenador del sistema
- Realizar captura
- Tesseract OCR
- Texto existente
- Información sobre herramientas
- Escribir en
- Escribir Texto Seguro
- Utilizar primer plano
- Esperar a atributo
- Esperar a fuga de elemento
- Esperar a fuga de imagen
- Comprobación de accesibilidad
- Desencadenador de eventos de aplicación
- Bloquear entrada de usuario
- Marcar/Desmarcar
- Comprobar estado de aplicación
- Comprobar elemento
- Clic
- Clic desencadenador de eventos
- Arrastrar y soltar
- Extraer datos de tabla
- Buscar elementos
- Para cada elemento de interfaz de usuario
- Obtener datos del navegador
- Obtener Portapapeles
- Obtener texto
- Obtener URL
- Ir a URL
- Resaltar
- Mantener el puntero
- Inject Js Script
- Atajos del teclado
- Desencadenador de eventos de pulsación de tecla
- Desplazamiento del ratón
- Navegar por el navegador
- Guardar imagen
- Seleccionar elemento
- Establecer datos del navegador
- Configurar el portapapeles
- Establecer navegador de Runtime
- Establecer foco
- Establecer texto
- Realizar captura
- Escribir en
- Desbloquear entrada de usuario
- Utilizar Aplicación/Navegador
- Operación de ventana
- Transacción de llamada
- Clic en imagen en pantalla
- Hacer clic en botón de barra de herramientas
- Expandir tabla jerárquica ALV
- Expandir árbol ALV
- Expandir árbol
- Lectura de barra de estado
- Inicio de sesión en SAP
- Inicio de sesión en SAP
- Desencadenador de cambio de atributos de sesión de SAP
- Seleccionar fechas en el calendario
- Seleccionar elemento de menú
- Ámbito de la celda de la tabla
- Transacción de llamada
- Clic en imagen en pantalla
- Hacer clic en botón de barra de herramientas
- Expandir tabla jerárquica ALV
- Expandir árbol ALV
- Expandir árbol
- Lectura de barra de estado
- Inicio de sesión en SAP
- Inicio de sesión en SAP
- Seleccionar fechas en el calendario
- Seleccionar elemento de menú
- Ámbito de la celda de la tabla
- Realizar búsquedas en el navegador y recuperar resultados mediante las API de automatización de IU
- Exploración web
- Buscar imágenes
- Hacer clic en imágenes
- Eventos de desencadenador y supervisor
- Crear y anular archivos
- Páginas HTML: extraer y manipular información
- Manipulación de ventana
- Selección de lista automatizada
- Buscar y manipular elementos de ventana
- Gestionar automatización de texto
- Cargar y procesar imágenes
- Gestionar acciones activadas por el ratón
- Automatizar tiempo de ejecución de aplicación
- Ejecución automática de una aplicación local
- Navegación de explorador
- Automatización web
- Ejemplo de ámbito de desencadenador
- Habilitar soporte de automatización de IU en DevExpress
- Computer Vision Local Server
- Automatización móvil
- Notas relacionadas
- Acerca de la arquitectura de automatización de dispositivos móviles
- Compatibilidad de proyectos
- Obtener tipos de registro
- Obtener registros
- Obtener origen de la página
- Obtener la orientación del dispositivo
- Obtener identificador de sesión
- Instalar aplicación
- Administrar aplicación actual
- Administrar otras aplicaciones
- Abrir enlace profundo
- Abrir URL
- Conexión de dispositivo móvil
- Deslizamiento direccional
- Patrón de dibujo
- Pase de dedo posicional
- Pulse un botón del hardware
- Establecer orientación del dispositivo
- Realizar captura
- Tomar parte de la captura de pantalla
- Elemento existente
- Ejecutar comando
- Obtener atributo
- Obtener elemento seleccionado
- Obtener texto
- Establecer elemento seleccionado
- Establecer texto
- Deslizamiento
- Pulsar
- Escribir Texto
- Primeros pasos con las API de automatización móvil
- Gestionar cuadros de diálogo emergentes en automatizaciones móviles
- Creating variables from selector attributes
- Creación de flujos de trabajo de automatización móvil
- Utilizar automatización móvil para una aplicación de banca móvil
- Automatización para aplicaciones React Native
- Terminal
- Notas relacionadas
- Acerca del paquete de actividades de Terminal
- Compatibilidad de proyectos
- Mejores prácticas
- Buscar texto
- Obtener color de la posición
- Obtener la posición del cursor
- Obtener campo
- Obtener campo en posición
- Obtener área de pantalla
- Obtener texto
- Obtener texto en posición
- Mover cursor
- Mover cursor al texto
- Enviar tecla de control
- Teclas de envío
- Teclas de envío seguras
- Establecer campo
- Configurar campo en posición
- Sesión del terminal
- Esperar texto de campo
- Esperar a que la pantalla esté lista
- Esperar texto en pantalla
- Esperar texto en posición
- API de automatización codificadas de terminal

Actividades UIAutomation
Arrastrar y soltar
Ejecuta una operación de arrastrar y soltar desde el elemento de la interfaz de usuario de origen al elemento de la interfaz de usuario de destino.
Definición
Espacio de nombres: UiPath.UIAutomationNext.API.Models
Ensamblado: UiPath.UIAutomationNext.API.Models (en UiPath.UIAutomationNext.API.Models dll)
Sobrecargas
| Sobrecarga | Descripción |
|---|---|
DragAndDrop(IElementDescriptor, DragAndDropOptions) | Arrastra y suelta un elemento de la IU especificado, identificado por un descriptor de un elemento del Repositorio de objetos, mientras se personaliza la acción de arrastrar y soltar. |
DragAndDrop(String, DragAndDropOptions) | Arrastra y suelta un elemento de la IU especificado, identificado por una cadena del Repositorio de objetos, mientras se personaliza la acción de arrastrar y soltar. |
DragAndDrop(IElementDescriptor, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double) | Arrastra y suelta un elemento de la IU especificado, identificado por un descriptor de un elemento del Repositorio de objetos y por el objeto TargetAnchorableModel , al tiempo que especifica los modificadores de teclas, el botón del ratón y el tipo de movimiento del cursor que quieres utilizar. |
DragAndDrop(String, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double) | Arrastra y suelta un elemento de la IU especificado, identificado por una cadena del Repositorio de objetos y por el objeto TargetAnchorableModel , al tiempo que especifica los modificadores de teclas, el botón del ratón y el tipo de movimiento del cursor que quieres utilizar. |
DragAndDrop(TargetAnchorableModel, DragAndDropOptions) | Arrastra y suelta un elemento de la IU especificado, identificado por el objeto TargetAnchorableModel , mientras personaliza la acción de arrastrar y soltar. |
DragAndDrop(RuntimeTarget, DragAndDropOptions) | Arrastra y suelta un elemento de la IU especificado, identificado por una instancia de tiempo de ejecución de un elemento del Repositorio de objetos, mientras se personaliza la acción de arrastrar y soltar. |
DragAndDrop(IElementDescriptor, DragAndDropOptions)
Arrastra y suelta un elemento de la IU especificado, identificado por un descriptor de un elemento de la IU del Repositorio de objetos, mientras se personaliza la acción de arrastrar y soltar.
DragAndDrop(
IElementDescriptor elementDescriptor,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
IElementDescriptor elementDescriptor,
DragAndDropOptions dragAndDropOptions)
elementDescriptor IElementDescriptor : el elemento de la IU que quieres arrastrar y soltar, identificado por un descriptor de un elemento de la IU del repositorio de objetos.
dragAndDropOptions DragAndDropOptions : opciones adicionales para personalizar la operación de arrastrar y soltar. Puedes elegir 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).
* `TargetAnchorableModel` - The location where you
want to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
to use during the drag and drop operation. The following options are
available: **None**, **Alt**, **Ctrl**, **Shift**, and
**Win**.
* `NMouseButton` - Specify the mouse button you want to
use during the drag and drop operation. The following options are
available: **Left**, **Right**, and **Middle**.
* `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.
* `UseSourceHover` - Determines whether to hover
over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
the actions necessary to perform the drag and drop operation.
* `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).
* `TargetAnchorableModel` - The location where you
want to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
to use during the drag and drop operation. The following options are
available: **None**, **Alt**, **Ctrl**, **Shift**, and
**Win**.
* `NMouseButton` - Specify the mouse button you want to
use during the drag and drop operation. The following options are
available: **Left**, **Right**, and **Middle**.
* `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.
* `UseSourceHover` - Determines whether to hover
over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
the actions necessary to perform the drag and drop operation.
DragAndDrop(String, DragAndDropOptions)
Arrastra y suelta un elemento de la IU especificado, identificado por una cadena del Repositorio de objetos, mientras se personaliza la acción de arrastrar y soltar.
DragAndDrop(
string target,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
string target,
DragAndDropOptions dragAndDropOptions)
target String : el elemento de la IU que quieres arrastrar y soltar, identificado por una cadena del Repositorio de objetos.
dragAndDropOptions DragAndDropOptions : opciones adicionales para personalizar la operación de arrastrar y soltar. Puedes elegir 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).
* `TargetAnchorableModel` - The location where you want
to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
to use during the drag and drop operation. The following options are
available: **None**, **Alt**, **Ctrl**, **Shift**, and
**Win**.
* `NMouseButton` - Specify the mouse button you want to
use during the drag and drop operation. The following options are
available: **Left**, **Right**, and **Middle**.
* `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.
* `UseSourceHover` - Determines whether to hover
over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
the actions necessary to perform the drag and drop operation.
* `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).
* `TargetAnchorableModel` - The location where you want
to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
to use during the drag and drop operation. The following options are
available: **None**, **Alt**, **Ctrl**, **Shift**, and
**Win**.
* `NMouseButton` - Specify the mouse button you want to
use during the drag and drop operation. The following options are
available: **Left**, **Right**, and **Middle**.
* `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.
* `UseSourceHover` - Determines whether to hover
over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
the actions necessary to perform the drag and drop operation.
DragAndDrop(IElementDescriptor, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double)
Arrastra y suelta un elemento de la IU especificado, identificado por un descriptor de un elemento del Repositorio de objetos y por el objeto TargetAnchorableModel , al tiempo que especifica los modificadores de teclas, el botón del ratón y el tipo de movimiento del cursor que quieres utilizar.
DragAndDrop(
IElementDescriptor elementDescriptor,
TargetAnchorableModel destinationTarget,
[NKeyModifiers? keyModifiers],
[NMouseButton? mouseButton],
[CursorMotionType? cursorMotionType],
[bool? useSourceHover],
[double? delayBetweenActions])
DragAndDrop(
IElementDescriptor elementDescriptor,
TargetAnchorableModel destinationTarget,
[NKeyModifiers? keyModifiers],
[NMouseButton? mouseButton],
[CursorMotionType? cursorMotionType],
[bool? useSourceHover],
[double? delayBetweenActions])
elementDescriptor IElementDescriptor : el elemento de la IU que quieres arrastrar y soltar, identificado por un descriptor de un elemento del repositorio de objetos.
destinationTarget TargetAnchorableModel : la ubicación a la que quieres arrastrar y soltar el elemento de la IU.
keyModifiers NKeyModifiers : especifica los modificadores de teclas que quieres utilizar durante la operación de arrastrar y soltar. Las siguientes opciones están disponibles: Ninguno, Alt, Ctrl, Mayúsculas y Win.
mouseButton NMouseButton : especifica el botón del ratón que quieres utilizar durante la operación de arrastrar y soltar. Las siguientes opciones están disponibles: Izquierda, Derecha y Medio.
cursorMotionType CursorMotionType : especifica el tipo de movimiento realizado por el cursor del ratón. Hay dos opciones disponibles:
* **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.
useSourceHover Boolean : determina si pasar el ratón por encima del origen antes de arrastrarlo.
delayBetweenActions Double : retraso (en segundos) entre las acciones necesarias para realizar la operación de arrastrar y soltar.
DragAndDrop(String, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double)
Arrastra y suelta un elemento de la IU especificado, identificado por una cadena del Repositorio de objetos y por el objeto TargetAnchorableModel , al tiempo que especifica los modificadores de teclas, el botón del ratón y el tipo de movimiento del cursor que quieres utilizar.
DragAndDrop(
string target,
TargetAnchorableModel destinationTarget,
[NKeyModifiers? keyModifiers],
[NMouseButton? mouseButton],
[CursorMotionType? cursorMotionType],
[bool? useSourceHover],
[double? delayBetweenActions])
DragAndDrop(
string target,
TargetAnchorableModel destinationTarget,
[NKeyModifiers? keyModifiers],
[NMouseButton? mouseButton],
[CursorMotionType? cursorMotionType],
[bool? useSourceHover],
[double? delayBetweenActions])
target String : el elemento de la IU que quieres arrastrar y soltar, identificado por una cadena del Repositorio de objetos.
destinationTarget TargetAnchorableModel : la ubicación a la que quieres arrastrar y soltar el elemento de la IU.
keyModifiers NKeyModifiers : especifica los modificadores de teclas que quieres utilizar durante la operación de arrastrar y soltar. Las siguientes opciones están disponibles: Ninguno, Alt, Ctrl, Mayúsculas y Win.
mouseButton NMouseButton : especifica el botón del ratón que quieres utilizar durante la operación de arrastrar y soltar. Las siguientes opciones están disponibles: Izquierda, Derecha y Medio.
cursorMotionType CursorMotionType : especifica el tipo de movimiento realizado por el cursor del ratón. Hay dos opciones disponibles:
* **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.
useSourceHover Boolean : determina si pasar el ratón por encima del origen antes de arrastrarlo.
delayBetweenActions Double : retraso (en segundos) entre las acciones necesarias para realizar la operación de arrastrar y soltar.
DragAndDrop(TargetAnchorableModel, DragAndDropOptions)
Arrastra y suelta un elemento de la IU especificado, identificado por el objeto TargetAnchorableModel , mientras personaliza la acción de arrastrar y soltar.
DragAndDrop(
TargetAnchorableModel target,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
TargetAnchorableModel target,
DragAndDropOptions dragAndDropOptions)
target TargetAnchorableModel : el elemento de la IU que quieres arrastrar y soltar, identificado por el objeto TargetAnchorableModel .
dragAndDropOptions DragAndDropOptions : opciones adicionales para personalizar la operación de arrastrar y soltar. Puedes elegir 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).
* `TargetAnchorableModel` - The location where you want
to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
to use during the drag and drop operation. The following options are
available: **None**, **Alt**, **Ctrl**, **Shift**, and
**Win**.
* `NMouseButton` - Specify the mouse button you want to
use during the drag and drop operation. The following options are
available: **Left**, **Right**, and **Middle**.
* `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.
* `UseSourceHover` - Determines whether to hover
over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
the actions necessary to perform the drag and drop operation.
* `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).
* `TargetAnchorableModel` - The location where you want
to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
to use during the drag and drop operation. The following options are
available: **None**, **Alt**, **Ctrl**, **Shift**, and
**Win**.
* `NMouseButton` - Specify the mouse button you want to
use during the drag and drop operation. The following options are
available: **Left**, **Right**, and **Middle**.
* `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.
* `UseSourceHover` - Determines whether to hover
over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
the actions necessary to perform the drag and drop operation.
DragAndDrop(RuntimeTarget, DragAndDropOptions)
Arrastra y suelta un elemento de la IU especificado, identificado por una instancia de tiempo de ejecución de un elemento del Repositorio de objetos, mientras se personaliza la acción de arrastrar y soltar.
DragAndDrop(
RuntimeTarget target,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
RuntimeTarget target,
DragAndDropOptions dragAndDropOptions)
target RuntimeTarget : el elemento de la IU que quieres arrastrar y soltar, identificado por una instancia de tiempo de ejecución de un elemento del repositorio de objetos.
dragAndDropOptions DragAndDropOptions : opciones adicionales para personalizar la operación de arrastrar y soltar. Puedes elegir 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).
* `TargetAnchorableModel` - The location where you want
to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
to use during the drag and drop operation. The following options are
available: **None**, **Alt**, **Ctrl**, **Shift**, and
**Win**.
* `NMouseButton` - Specify the mouse button you want to
use during the drag and drop operation. The following options are
available: **Left**, **Right**, and **Middle**.
* `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.
* `UseSourceHover` - Determines whether to hover
over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
the actions necessary to perform the drag and drop operation.
* `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).
* `TargetAnchorableModel` - The location where you want
to drag and drop the UI element to.
* `NKeyModifiers` - Specify the key modifiers you want
to use during the drag and drop operation. The following options are
available: **None**, **Alt**, **Ctrl**, **Shift**, and
**Win**.
* `NMouseButton` - Specify the mouse button you want to
use during the drag and drop operation. The following options are
available: **Left**, **Right**, and **Middle**.
* `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.
* `UseSourceHover` - Determines whether to hover
over the source before dragging.
* `DelayBetweenActions` - Delay (in seconds) between
the actions necessary to perform the drag and drop operation.
- Definición
- Sobrecargas
DragAndDrop(IElementDescriptor, DragAndDropOptions)DragAndDrop(String, DragAndDropOptions)DragAndDrop(IElementDescriptor, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double)DragAndDrop(String, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double)DragAndDrop(TargetAnchorableModel, DragAndDropOptions)DragAndDrop(RuntimeTarget, DragAndDropOptions)