- Vue d'ensemble (Overview)
- Automatisation de l'interface utilisateur
- À propos du package d'activités UIAutomation
- Applications et technologies automatisées avec UI Automation
- Compatibilité du projet
- UI-ANA-016 - Extraire l'URL ouverte du navigateur
- UI-ANA-017 - ContinuerSurErreur (ContinueOnError) True
- UI-ANA-018 - Répertorier les activités d'OCR/d'image
- UI-DBP-006 - Utilisation du conteneur
- UI-DBP-013 - Utilisation abusive de l’automatisation Excel
- UI-DBP-030 - Utilisation de variables interdites dans les sélecteurs
- UI-DBP-031 : Vérification de l’activité
- UI-PRR-001 - Simuler un clic
- UI-PRR-002 - Type de simulation
- UI-PRR-003 - Ouverture d'une utilisation abusive de l'application
- UI-PRR-004 - Délais codés en dur
- UI-REL-001 - Idx volumineux dans les sélecteurs
- UI-SEC-004 - Données d’e-mail du sélecteur
- UI-SEC-010 - Restrictions d'applications/d'URL
- UI-USG-011 - Attributs non autorisés
- UX-SEC-010 - Restrictions d'applications/d'URL
- UX-DBP-029 - Utilisation d'un mot de passe non sécurisé
- UI-PST-001 - Niveau du journal d'audit dans les paramètres du projet
- Outil de migration de navigateur UiPath
- Zone de détourage
- Enregistreur de Computer Vision
- À propos des éléments d'interface utilisateur
- Propriétés des activités de l'interface utilisateur
- Exemple d'utilisation des méthodes de saisie
- Méthodes de sortie ou de capture de données d'écran
- Exemple d'utilisation de méthodes de sortie ou de capture de données d'écran
- Génération de tables à partir de données non structurées
- Capture relative de données
- À propos de l'automatisation des images et des textes
- Activités liées à la souris et au clavier
- Exemple d'utilisation de l'automatisation de la souris et du clavier
- Les activités de type texte
- Exemple d'utilisation d'automatisation de texte
- Activités de type OCR
- Activités de type image
- Exemple d'utilisation de l'automatisation d'image et d'OCR
- Index des activités
- Activer (Activate)
- Base d'ancrage (Anchor Base)
- Lier à un navigateur (Attach Browser)
- Lier à une fenêtre (Attach Window)
- Block User Input
- Légende (Callout)
- Vérifier (Check)
- Cliquer (Click)
- Cliquer sur l'image (Click Image)
- Déclencheur de clic image (Click Image Trigger)
- Cliquer sur le texte OCR (Click OCR Text)
- Cliquer sur le texte (Click Text)
- Déclencheur de clic (Click Trigger)
- Fermer l'application (Close Application)
- Fermer l'onglet (Close Tab)
- Fermer la fenêtre (Close Window)
- Context Aware Anchor
- Copier le texte sélectionné (Copy Selected Text)
- Element Attribute Change Trigger
- Élément existant (Element Exists)
- Étendue de l'élément (Element Scope)
- Element State Change Trigger
- Export UI Tree
- Extraire les données structurées (Extract Structured Data)
- Rechercher les enfants (Find Children)
- Rechercher l'élément (Find Element)
- Rechercher l'image (Find Image)
- Rechercher les correspondances de l'image (Find Image Matches)
- Rechercher une position de texte OCR (Find OCR Text Position)
- Rechercher l'élément relatif (Find Relative Element)
- Rechercher la position du texte (Find Text Position)
- Obtenir la fenêtre active (Get Active Window)
- Obtenir l'ancêtre (Get Ancestor)
- Obtenir l'attribut (Get Attribute)
- Obtenir les infos de l'événement (Get Event Info)
- Récupérer du presse-papiers (Get From Clipboard)
- Obtenir le texte complet (Get Full Text)
- Obtenir le texte OCR (Get OCR Text)
- Récupérer le mot de passe (Get Password)
- Obtenir la position (Get Position)
- Obtenir l'élément source (Get Source Element)
- Obtenir le texte (Get Text)
- Obtenir le texte visible (Get Visible Text)
- Revenir en arrière (Go Back)
- Avancer (Go Forward)
- Accéder à l'accueil (Go Home)
- Google Cloud Vision OCR
- Masquer la fenêtre (Hide Window)
- Mettre en surbrillance (Highlight)
- Déclencheur de raccourci (Hotkey Trigger)
- Pointer (Hover)
- Pointer sur l'image (Hover Image)
- Pointer sur le texte OCR (Hover OCR Text)
- Pointer sur le texte (Hover Text)
- Image existante (Image Exists)
- Indiquer sur l'écran (Indicate On Screen)
- Injecter du code .NET
- Inject Js Script
- Invoquer la méthode ActiveX
- Déclencheur de pression de touche (Key Press Trigger)
- Charger l'image (Load Image)
- Agrandir la fenêtre (Maximize Window)
- Microsoft Azure ComputerVision OCR
- Reconnaissance optique des caractères Microsoft (Microsoft OCR)
- Microsoft Project Oxford Online OCR
- Réduire la fenêtre (Minimize Window)
- Surveiller les événements (Monitor Events)
- Déclencheur de souris (Mouse Trigger)
- Déplacer la fenêtre (Move Window)
- Accéder à (Navigate To)
- Texte OCR existant (OCR Text Exists)
- Sur affichage de l'élément (On Element Appear)
- Sur disparition de l'élément (On Element Vanish)
- Sur apparition de l'image (On Image Appear)
- Sur disparition de l'image (On Image Vanish)
- Ouvrir l'application (Open Application)
- Ouvrir le navigateur (Open Browser)
- Actualiser le navigateur (Refresh Browser)
- Relire l'événement utilisateur (Replay User Event)
- Restaurer la fenêtre (Restore Window)
- Enregistrer l'image (Save Image)
- Sélectionner l'élément (Select Item)
- Sélectionner plusieurs éléments (Select Multiple Items)
- Envoyer le raccourci (Send Hotkey)
- Définir la zone de détourage (Set Clipping Region)
- Définir le focus (Set Focus)
- Définir le texte (Set Text)
- Placer dans le presse-papiers (Set To Clipboard)
- Définir l'attribut Web (Set Web Attribute)
- Afficher la fenêtre (Show Window)
- Déclencher le processus (Start Process)
- Déclencheur système (System Trigger)
- Prendre une capture d'écran (Take Screenshot)
- Tesseract OCR
- Texte existant (Text Exists)
- Info-bulle
- Saisir dans (Type Into)
- Saisir un texte sécurisé (Type Secure Text)
- Utiliser le premier plan
- Attendre un attribut (Wait Attribute)
- Attendre que l'élément disparaisse (Wait Element Vanish)
- Attendre que l'image disparaisse (Wait Image Vanish)
- Vérification de l’accessibilité
- Application event trigger
- Block User Input
- Check/Uncheck
- Check App State
- Check Element
- Cliquer (Click)
- Click Event Trigger
- Glisser et déposer
- Extract Table Data
- Find Elements
- For Each UiElement
- Get Browser Data
- Get Clipboard (Obtenir le Presse-papiers)
- Obtenir le texte (Get Text)
- Get URL
- Go To URL
- Mettre en surbrillance (Highlight)
- Pointer (Hover)
- Inject Js Script
- Raccourcis clavier
- Keypress Event Trigger
- Mouse scroll
- Navigate Browser
- Sélectionner l'élément (Select Item)
- Set Browser Data
- Set Clipboard (Définir le Presse-papiers)
- Définir le navigateur du runtime (Set Runtime Browser)
- Définir le focus (Set Focus)
- Définir le texte (Set Text)
- Prendre une capture d'écran (Take Screenshot)
- Saisir dans (Type Into)
- Unblock User Input
- Use Application/Browser
- Window operation
- Joindre
- Vérifier (Check)
- Cliquer (Click)
- Glisser et déposer
- Extraire des données
- Obtenir l'attribut (Get Attribute)
- ObtenirEnfants
- ObtenirCibleRuntime
- GetText
- Get URL
- GoToUrl
- Mettre en surbrillance (Highlight)
- Pointer (Hover)
- IsEnabled
- Raccourci clavier
- Mouse scroll
- Ouvrir
- Sélectionner l'élément (Select Item)
- Prendre une capture d'écran (Take Screenshot)
- Saisir dans (Type Into)
- ÉtatAttente
- Effectuez une recherche par navigateur et récupérez les résultats à l'aide des API UI Automation
- Navigation sur le Web
- Rechercher des images
- Cliquer sur des images
- Déclencher et surveiller des événements
- Créer et remplacer des fichiers
- Pages HTML : extraire et manipuler des informations
- Manipulation des fenêtres
- Sélection de liste automatisée
- Rechercher et manipuler des éléments de fenêtre
- Gérer l'automatisation du texte
- Charger et traiter des images
- Gérer les actions activées par la souris
- Automatiser l'exécution des applications
- Exécution automatisée d'une application locale
- Navigation avec le navigateur
- Automatisation Web
- Exemple de fonctionnalités du déclencheur
- Activer la prise en charge d’UI Automation dans DevExpress
- Computer Vision Local Server
- Automatisation mobile
- Notes de publication
- À propos de l'architecture d'automatisation des appareils mobiles
- Compatibilité du projet
- Get Log Types
- Get Logs
- Get Page Source
- Get Device Orientation
- Get Session Identifier
- Installer l'application
- Gérer l'application actuelle
- Gérer une autre application
- Ouvrir DeepLink
- Ouvrir l'URL
- Mobile Device Connection
- Balayer directionnel
- Dessiner un modèle
- Positional Swipe
- Press Hardware Button
- Set Device Orientation
- Prendre une capture d'écran (Take Screenshot)
- Prendre une partie de capture d'écran
- Élément existant (Element Exists)
- Execute Command
- Obtenir l'attribut (Get Attribute)
- Get Selected Item
- Obtenir le texte (Get Text)
- Set Selected Item
- Définir le texte (Set Text)
- Balayer
- Tap
- Saisir texte
- Premiers pas avec les API d’automatisation mobile
- Gestion des boîtes de dialogue contextuelles dans les automatisations mobiles
- Creating variables from selector attributes
- Créer des workflows d'automatisation mobile
- Utiliser l’automatisation mobile pour les applications de banque mobile
- Automatisation pour les applications React Native
- Terminal
- Notes de publication
- À propos du package d'activités Terminal
- Compatibilité du projet
- Meilleures pratiques
- Rechercher un texte (Find Text)
- Get Color At Position
- Obtenir la position du curseur (Get Cursor Position)
- Obtenir le champ (Get Field)
- Obtenir le champ en position (Get Field at Position)
- Accéder à la zone d'écran (Get Screen Area)
- Obtenir le texte (Get Text)
- Obtenir le texte en position (Get Text at Position)
- Déplacer le curseur (Move Cursor)
- Move Cursor to Text
- Envoyer la touche Contrôle (Send Control Key)
- Envoyer les touches (Send Keys)
- Envoyer les touches en toute sécurité (Send Keys Secure)
- Définir le champ (Set Field)
- Définir le champ en position (Set Field at Position)
- Session de terminal (Terminal Session)
- Attendre le texte de champ (Wait Field Text)
- Wait Screen Ready
- Attendre le texte d'écran (Wait Screen Text)
- Attendre le texte en position (Wait Text at Position)

Activités UIAutomation
Glisser et déposer
Exécute une opération de glisser-déposer de l’élément d’interface utilisateur source vers l’élément d’interface utilisateur de destination.
Définition
Espace de noms: UiPath.UIAutomationNext.API.Models
Assembly: UiPath.UIAutomationNext.API.Models (dans UiPath.UIAutomationNext.API.Models dll)
Surcharges
| Surcharge | Description |
|---|---|
DragAndDrop(IElementDescriptor, DragAndDropOptions) | Déplace un élément d'IU spécifié, identifié par un descripteur d'un élément du Référentiel d'objets, tout en personnalisant l'action de glisser-déposer. |
DragAndDrop(String, DragAndDropOptions) | Déplace un élément d’IU spécifié, identifié par une chaîne à partir du Référentiel d’objets, tout en personnalisant l’action de glisser-déposer. |
DragAndDrop(IElementDescriptor, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double) | Glisse et dépose un élément d'IU spécifié, identifié par un descripteur d'un élément du Référentiel d'objets et par l'objet TargetAnchorableModel , tout en spécifiant les modificateurs de touches, le bouton de la souris et le type de mouvement du curseur à utiliser. |
DragAndDrop(String, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double) | Glisse et dépose un élément d'IU spécifié, identifié par une chaîne du Référentiel d'objets et un par l'objet TargetAnchorableModel , tout en spécifiant les modificateurs de touches, le bouton de la souris et le type de mouvement du curseur à utiliser. |
DragAndDrop(TargetAnchorableModel, DragAndDropOptions) | Déplace un élément d'IU spécifié, identifié par l'objet TargetAnchorableModel , tout en personnalisant l'action de glisser-déposer. |
DragAndDrop(RuntimeTarget, DragAndDropOptions) | Faites glisser et déposez un élément d’IU spécifié, identifié par une instance de runtime d’un élément du référentiel d’objets, tout en personnalisant l’action de glisser-déposer. |
DragAndDrop(IElementDescriptor, DragAndDropOptions)
Déplace un élément d'interface utilisateur spécifié, identifié par un descripteur d'un élément d'interface utilisateur du référentiel d'objets, tout en personnalisant l'action de glisser-déposer.
DragAndDrop(
IElementDescriptor elementDescriptor,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
IElementDescriptor elementDescriptor,
DragAndDropOptions dragAndDropOptions)
elementDescriptor IElementDescriptor : l’élément d’IU que vous souhaitez faire glisser et déposer, identifié par un descripteur d’un élément d’IU du référentiel d’objets.
dragAndDropOptions DragAndDropOptions : options supplémentaires pour personnaliser l'opération de glisser-déposer. Vous pouvez choisir de personnaliser :
* `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)
Déplace un élément d’IU spécifié, identifié par une chaîne à partir du Référentiel d’objets, tout en personnalisant l’action de glisser-déposer.
DragAndDrop(
string target,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
string target,
DragAndDropOptions dragAndDropOptions)
target String : l’élément d’IU que vous souhaitez glisser-déposer, identifié par une chaîne du référentiel d’objets.
dragAndDropOptions DragAndDropOptions : options supplémentaires pour personnaliser l'opération de glisser-déposer. Vous pouvez choisir de personnaliser :
* `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)
Glisse et dépose un élément d'IU spécifié, identifié par un descripteur d'un élément du Référentiel d'objets et par l'objet TargetAnchorableModel , tout en spécifiant les modificateurs de touches, le bouton de la souris et le type de mouvement du curseur à utiliser.
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 : l’élément d’IU que vous souhaitez glisser-déposer, identifié par un descripteur d’un élément du référentiel d’objets.
destinationTarget TargetAnchorableModel : l’emplacement où vous souhaitez glisser-déposer l’élément d’IU.
keyModifiers NKeyModifiers : spécifiez les modificateurs de touche que vous souhaitez utiliser pendant l'opération de glisser-déposer. Les options suivantes sont disponibles : Aucun, Alt, Ctrl, Maj,et Win.
mouseButton NMouseButton : spécifiez le bouton de la souris que vous souhaitez utiliser pendant l'opération de glisser-déposer. Les options suivantes sont disponibles : Gauche, Droite, Milieu.
cursorMotionType CursorMotionType : spécifie le type de mouvement effectué par le curseur de la souris. Deux options sont 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 : détermine s’il faut survoler la source avant de glisser.
delayBetweenActions Double : Délai (en secondes) entre les actions nécessaires pour effectuer l’opération de glisser-déposer.
DragAndDrop(String, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double)
Glisse et dépose un élément d'IU spécifié, identifié par une chaîne du Référentiel d'objets et un par l'objet TargetAnchorableModel , tout en spécifiant les modificateurs de touches, le bouton de la souris et le type de mouvement du curseur à utiliser.
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 : l’élément d’IU que vous souhaitez glisser-déposer, identifié par une chaîne du référentiel d’objets.
destinationTarget TargetAnchorableModel : l’emplacement où vous souhaitez glisser-déposer l’élément d’IU.
keyModifiers NKeyModifiers : spécifiez les modificateurs de touche que vous souhaitez utiliser pendant l'opération de glisser-déposer. Les options suivantes sont disponibles : Aucun, Alt, Ctrl, Maj,et Win.
mouseButton NMouseButton : spécifiez le bouton de la souris que vous souhaitez utiliser pendant l'opération de glisser-déposer. Les options suivantes sont disponibles : Gauche, Droite, Milieu.
cursorMotionType CursorMotionType : spécifie le type de mouvement effectué par le curseur de la souris. Deux options sont 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 : détermine s’il faut survoler la source avant de glisser.
delayBetweenActions Double : Délai (en secondes) entre les actions nécessaires pour effectuer l’opération de glisser-déposer.
DragAndDrop(TargetAnchorableModel, DragAndDropOptions)
Déplace un élément d'IU spécifié, identifié par l'objet TargetAnchorableModel , tout en personnalisant l'action de glisser-déposer.
DragAndDrop(
TargetAnchorableModel target,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
TargetAnchorableModel target,
DragAndDropOptions dragAndDropOptions)
target TargetAnchorableModel : l’élément d’IU que vous souhaitez glisser-déposer, identifié par l’objet TargetAnchorableModel .
dragAndDropOptions DragAndDropOptions : options supplémentaires pour personnaliser l'opération de glisser-déposer. Vous pouvez choisir de personnaliser :
* `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)
Faites glisser et déposez un élément d’IU spécifié, identifié par une instance de runtime d’un élément du référentiel d’objets, tout en personnalisant l’action de glisser-déposer.
DragAndDrop(
RuntimeTarget target,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
RuntimeTarget target,
DragAndDropOptions dragAndDropOptions)
target RuntimeTarget : l’élément d’IU que vous souhaitez glisser-déposer, identifié par une instance de runtime d’un élément du référentiel d’objets.
dragAndDropOptions DragAndDropOptions : options supplémentaires pour personnaliser l'opération de glisser-déposer. Vous pouvez choisir de personnaliser :
* `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.
- Définition
- Surcharges
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)