- Überblick
- UI-Automatisierung (UI Automation)
- Über das UIAutomation-Aktivitätspaket
- Mit UI-Automatisierung automatisierte Anwendungen und Technologien
- Projektkompatibilität
- UI-ANA-016 – URL zum Öffnen eines Browsers abrufen
- UI-ANA-017 – ContinueOnError True
- UI-ANA-018 – OCR-/Bildaktivitäten auflisten
- UI-DBP-006 – Containernutzung
- UI-DBP-013 – Falscher Gebrauch von Excel-Automatisierung
- UI-DBP-030 – Verwendung unzulässiger Variablen in Selektoren
- UI-DBP-031 – Aktivitätsverifizierung
- UI-PRR-001 – Klick simulieren
- UI-PRR-002 – Typ simulieren
- UI-PRR-003 – Offener Anwendungsmissbrauch
- UI-PRR-004 – Hartcodierte Verzögerungen
- UI-REL-001 – Große IDX in Selektoren
- UI-SEC-004 – Selektor-E-Mail-Daten
- UI-SEC-010 – App-/URL-Einschränkungen
- UI-USG-011 – Nicht zulässige Attribute
- UX-SEC-010 – App-/URL-Einschränkungen
- UX-DBP-029 – Unsichere Kennwortnutzung
- UI-PST-001 – Prüfungsprotokollebene in Projekteinstellungen
- UiPath-Browsermigrationstool
- Clippingbereich
- Computer Vision Recorder
- Aktivitätenindex
- Aktivieren (Activate)
- Ankerbasis (Anchor Base)
- Browser anhängen (Attach Browser)
- Fenster anhängen (Attach Window)
- Benutzeingabe blockieren (Block User Input)
- Textfeld (Callout)
- Prüfen (Check)
- Klicken (Click)
- Bild anklicken (Click Image)
- Bild-Trigger anklicken (Click Image Trigger)
- OCR-Text anklicken (Click OCR Text)
- Text anklicken (Click Text)
- Trigger anklicken (Click Trigger)
- Anwendung schließen (Close Application)
- Registerkarte schließen (Close Tab)
- Fenster schließen (Close Window)
- Kontextbewusster Anker
- Ausgewählten Text kopieren (Copy Selected Text)
- Element Attribute Change Trigger
- Element vorhanden (Element Exists)
- Elementumfang (Element Scope)
- Element State Change Trigger
- Export UI Tree
- Strukturierte Daten extrahieren (Extract Structured Data)
- Untergeordnete Elemente finden (Find Children)
- Element finden (Find Element)
- Bild finden (Find Image)
- Bildübereinstimmung finden (Find Image Matches)
- OCR-Textposition finden (Find OCR Text Position)
- Relatives Element finden (Find Relative Element)
- Textposition finden (Find Text Position)
- Aktives Fenster abrufen (Get Active Window)
- Vorgänger-Element erhalten (Get Ancestor)
- Attribut erhalten (Get Attribute)
- Ereignisinfo erhalten (Get Event Info)
- Aus Zwischenablage erhalten (Get From Clipboard)
- Volltext erhalten (Get Full Text)
- OCR-Text erhalten (Get OCR Text)
- Passwort erhalten (Get Password)
- Position erhalten (Get Position)
- Quellelement erhalten (Get Source Element)
- Text erhalten (Get Text)
- Sichtbaren Text erhalten (Get Visible Text)
- Zurück (Go Back)
- Weiter (Go Forward)
- Zur Startseite (Go Home)
- Google Cloud Vision OCR
- Fenster ausblenden (Hide Window)
- Markieren (Highlight)
- Hotkey-Trigger (Hotkey Trigger)
- Darauf zeigen (Hover)
- Auf Bild zeigen (Hover Image)
- Auf OCR-Text zeigen (Hover OCR Text)
- Text beim Darauf zeigen (Hover Text)
- Bild vorhanden (Image Exists)
- Auf Bildschirm anzeigen (Indicate On Screen)
- .NET-Code einfügen
- Inject Js Script
- ActiveX-Methode aufrufen
- Tastendruck-Trigger (Key Press Trigger)
- Bild laden (Load Image)
- Fenster maximieren (Maximize Window)
- Microsoft Azure ComputerVision OCR
- Microsoft OCR
- Microsoft Project Oxford Online OCR
- Fenster minimieren (Minimize Window)
- Ereignisse überwachen (Monitor Events)
- Maus-Trigger (Mouse Trigger)
- Fenster verschieben (Move Window)
- Navigieren zu (Navigate To)
- OCR-Text vorhanden (OCR Text Exists)
- Auf Element erscheinen (On Element Appear)
- Auf Element verschwinden (On Element Vanish)
- Auf Bild erscheinen (On Image Appear)
- Auf Bild verschwinden (On Image Vanish)
- Anwendung öffnen (Open Application)
- Browser öffnen (Open Browser)
- Browser aktualisieren (Refresh Browser)
- Benutzerereignis wiedergeben (Replay User Event)
- Fenster wiederherstellen (Restore Window)
- Bild speichern (Save Image)
- Objekt auswählen (Select Item)
- Mehrere Objekte auswählen (Select Multiple Items)
- Hotkey senden (Send Hotkey)
- Ausschneidebereich einstellen (Set Clipping Region)
- Fokus legen auf (Set Focus)
- Text einstellen (Set Text)
- Auf Zwischenablage setzen (Set To Clipboard)
- Web-Attribut setzen (Set Web Attribute)
- Fenster anzeigen (Show Window)
- Prozess starten (Start Process)
- System-Trigger (System Trigger)
- Screenshot anfertigen (Take Screenshot)
- Tesseract OCR
- Text vorhanden (Text Exists)
- Tooltip
- Eingeben in (Type Into)
- Sicheren Text eingeben (Type Secure Text)
- Vordergrund verwenden
- Attribut abwarten (Wait Attribute)
- Warten, bis Element verschwindet (Wait Element Vanish)
- Warten, bis Bild verschwindet (Wait Image Vanish)
- Prüfung der Barrierefreiheit
- Application event trigger
- Benutzeingabe blockieren (Block User Input)
- Check/Uncheck
- Check App State
- Check Element
- Klicken (Click)
- Click Event Trigger
- Ziehen und Ablegen
- Elementumfang (Element Scope)
- Extract Table Data
- Find Elements
- For Each UI Element
- Get Browser Data
- Clipboard abrufen
- Text erhalten (Get Text)
- Get URL
- Zu URL wechseln
- Markieren (Highlight)
- Darauf zeigen (Hover)
- Inject Js Script
- Tastenkombinationen
- Keypress Event Trigger
- Mouse Scroll
- Navigate Browser
- Bild speichern (Save Image)
- Objekt auswählen (Select Item)
- Set Browser Data
- Clipboard festlegen
- Legen Sie den CV-Server fest
- Set Runtime Browser
- Fokus legen auf (Set Focus)
- Projekteinstellung festlegen
- Text einstellen (Set Text)
- Screenshot anfertigen (Take Screenshot)
- Eingeben in (Type Into)
- Unblock User Input
- Window operation
- Anhängen
- Prüfen (Check)
- Klicken (Click)
- Ziehen und Ablegen
- Daten extrahieren
- Attribut erhalten (Get Attribute)
- GetChildren
- GetRuntimeTarget
- GetText
- Get URL
- GoToUrl
- Markieren (Highlight)
- Darauf zeigen (Hover)
- IsEnabled
- Tastaturkürzel (Keyboard Shortcut)
- Mouse Scroll
- Offen
- Objekt auswählen (Select Item)
- Screenshot anfertigen (Take Screenshot)
- Eingeben in (Type Into)
- Wartestatus
- Führen Sie eine Browsersuche durch und rufen Sie Ergebnisse mithilfe von UIAutomation-APIs ab
- Web-Browsing
- Finden von Bildern
- Klicken auf Bilder
- Auslösen und Überwachen von Ereignissen
- Erstellen und Überschreiben von Dateien
- HTML-Seiten: Extrahieren und Bearbeiten von Informationen
- Bearbeiten von Fenstern
- Automatisierte Listenauswahl
- Finden und Bearbeiten von Fensterelementen
- Verwalten der Textautomatisierung
- Laden und Verarbeiten von Bildern
- Verwalten von mausaktivierten Aktionen
- Automatisieren der Anwendungslaufzeit
- Automatisierte Ausführung einer lokalen Anwendung
- Browsernavigation
- Web-Automatisierung
- Beispiel für Trigger Scope
- Aktivieren der Unterstützung für die UI-Automatisierung in DevExpress
- Computer Vision Local Server
- Mobile Automation
- Versionshinweise
- Über die Architektur der Automatisierung von Mobilgeräten
- Projektkompatibilität
- Get Log Types
- Get Logs
- Get Page Source
- Get Device Orientation
- Get Session Identifier
- Install App
- Manage Current App
- Manage Other App
- DeepLink öffnen
- Open URL
- Mobile Device Connection
- Richtungswechsel
- Muster zeichnen
- Positional Swipe
- Press Hardware Button
- Set Device Orientation
- Screenshot anfertigen (Take Screenshot)
- Take Screenshot Part
- Element vorhanden (Element Exists)
- Execute Command
- Attribut erhalten (Get Attribute)
- Get Selected Item
- Text erhalten (Get Text)
- Set Selected Item
- Text einstellen (Set Text)
- Wischen
- Tap
- Type Text
- Terminal
- Versionshinweise
- Über das Terminal-Aktivitätspaket
- Projektkompatibilität
- Best Practices
- Find Text
- Get Color At Position
- Get Cursor Position
- Feld erhalten (Get Field)
- Feld an Position erhalten (Get Field at Position)
- Bildschirmbereich erhalten (Get Screen Area)
- Text erhalten (Get Text)
- Text an Position erhalten (Get Text at Position)
- Cursor bewegen (Move Cursor)
- Move Cursor to Text
- Strg-Taste senden (Send Control Key)
- Tasten senden (Send Keys)
- Sichere Tasten senden (Send Keys Secure)
- Feld setzen (Set Field)
- Feld an Position setzen (Set Field at Position)
- Terminalsitzung (Terminal Session)
- Warte auf Feldtext (Wait Field Text)
- Wait Screen Ready
- Warte auf Bildschirmtext (Wait Screen Text)
- Warte auf Text an Position (Wait Text at Position)
- Terminalcodierte Automatisierungs-APIs
Ziehen und Ablegen
DragAndDrop in der UI Automation-codierten Automatisierungs-API: Führt einen Drag-and-drop-Vorgang vom Quell-UI-Element zum Ziel-UI-Element aus.
Führt einen Drag-and-drop-Vorgang vom Quell-UI-Element zum Ziel-UI-Element aus.
Definition
Namespace: UiPath.UIAutomationNext.API.Models
Assembly: UiPath.UIAutomationNext.API.Models (in der DLL-Datei UiPath.UIAutomationNext.API.Models)
Überladungen
| Überladen | Beschreibung |
|---|---|
DragAndDrop(IElementDescriptor, DragAndDropOptions) | Zieht und legt ein bestimmtes UI-Element ab, das durch einen Deskriptor eines Elements in Object Repository identifiziert wird, während die Drag-and-drop-Aktion angepasst wird. |
DragAndDrop(String, DragAndDropOptions) | Zieht und legt ein bestimmtes UI-Element ab, das durch eine Zeichenfolge aus dem Objekt-Repository identifiziert wird, während die Drag-and-drop-Aktion angepasst wird. |
DragAndDrop(IElementDescriptor, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double) | Zieht ein angegebenes UI-Element, das durch einen Deskriptor eines Elements aus dem Objekt-Repository und durch das TargetAnchorableModel -Objekt identifiziert ist, und legt es ab, während es die Zusatztasten, die Maustaste und den Cursorbewegungstyp angibt, den Sie verwenden möchten. |
DragAndDrop(String, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double) | Zieht ein bestimmtes UI-Element, das durch eine Zeichenfolge aus dem Objekt-Repository und durch das TargetAnchorableModel -Objekt identifiziert ist, und legt es ab, während die Zusatztasten, die Maustaste und der Cursorbewegungstyp angegeben werden, die Sie verwenden möchten. |
DragAndDrop(TargetAnchorableModel, DragAndDropOptions) | Zieht und legt ein bestimmtes UI-Element ab, das durch das TargetAnchorableModel -Objekt identifiziert wird, während die Drag-and-drop-Aktion angepasst wird. |
DragAndDrop(RuntimeTarget, DragAndDropOptions) | Zieht und legt ein bestimmtes UI-Element ab, das von einer Laufzeitinstanz eines Object Repository-Elements identifiziert wird, während die Drag-and-drop-Aktion angepasst wird. |
DragAndDrop(IElementDescriptor, DragAndDropOptions)
Zieht und legt ein bestimmtes UI-Element, das durch einen Deskriptor eines UI-Elements in Object Repository identifiziert ist, ab, während die Drag-and-drop-Aktion angepasst wird.
DragAndDrop(
IElementDescriptor elementDescriptor,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
IElementDescriptor elementDescriptor,
DragAndDropOptions dragAndDropOptions)
elementDescriptor IElementDescriptor: Das UI-Element, das Sie ziehen und ablegen möchten, identifiziert durch einen Deskriptor eines UI-Elements im Objekt-Repository.
dragAndDropOptions DragAndDropOptions: Zusätzliche Optionen zum Anpassen des Drag-and-drop-Vorgangs. Sie können Folgendes anpassen:
* `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)
Zieht und legt ein bestimmtes UI-Element ab, das durch eine Zeichenfolge aus dem Objekt-Repository identifiziert wird, während die Drag-and-drop-Aktion angepasst wird.
DragAndDrop(
string target,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
string target,
DragAndDropOptions dragAndDropOptions)
target String: Das UI-Element, das Sie ziehen und ablegen möchten, identifiziert durch eine Zeichenfolge aus dem Object-Repository.
dragAndDropOptions DragAndDropOptions: Zusätzliche Optionen zum Anpassen des Drag-and-drop-Vorgangs. Sie können Folgendes anpassen:
* `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)
Zieht ein angegebenes UI-Element, das durch einen Deskriptor eines Elements aus dem Object Repository und nicht das TargetAnchorableModel -Objekt identifiziert wurde, und legt es ab. Dabei werden die Zusatztasten, die Maustaste und der Cursorbewegungstyp angegeben, die Sie verwenden möchten.
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: Das UI-Element, das Sie ziehen und ablegen möchten, identifiziert durch einen Deskriptor eines Elements im Objekt-Repository.
destinationTarget TargetAnchorableModel: Der Speicherort, an den Sie das UI-Element ziehen und ablegen möchten.
keyModifiers NKeyModifiers: Geben Sie die Zusatztasten an, die Sie während des Drag-and-drop-Vorgangs verwenden möchten. Die folgenden Optionen sind verfügbar: Keine, Alt, Strg, Umschalt und Win.
mouseButton NMouseButton: Geben Sie die Maustaste an, die Sie während des Drag-and-drop-Vorgangs verwenden möchten. Die folgenden Optionen sind verfügbar: Links, Rechts und Mitte.
cursorMotionType CursorMotionType: Gibt die Art der Bewegung an, die vom Mauszeiger ausgeführt wird. Es gibt zwei verfügbare Optionen:
* **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: Bestimmt, ob der Mauszeiger vor dem Ziehen auf die Quelle zeigen soll.
delayBetweenActions Double: Verzögerung (in Sekunden) zwischen den Aktionen, die zum Ausführen des Drag-and-drop-Vorgangs erforderlich sind.
DragAndDrop(String, TargetAnchorableModel, NKeyModifiers, NMouseButton, CursorMotionType, Boolean, Double)
Zieht ein bestimmtes UI-Element, das durch eine Zeichenfolge aus dem Objekt-Repository und durch das TargetAnchorableModel -Objekt identifiziert ist, und legt es ab, während die Zusatztasten, die Maustaste und der Cursorbewegungstyp angegeben werden, die Sie verwenden möchten.
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: Das UI-Element, das Sie ziehen und ablegen möchten, identifiziert durch eine Zeichenfolge aus dem Object-Repository.
destinationTarget TargetAnchorableModel: Der Speicherort, an den Sie das UI-Element ziehen und ablegen möchten.
keyModifiers NKeyModifiers: Geben Sie die Zusatztasten an, die Sie während des Drag-and-drop-Vorgangs verwenden möchten. Die folgenden Optionen sind verfügbar: Keine, Alt, Strg, Umschalt und Win.
mouseButton NMouseButton: Geben Sie die Maustaste an, die Sie während des Drag-and-drop-Vorgangs verwenden möchten. Die folgenden Optionen sind verfügbar: Links, Rechts und Mitte.
cursorMotionType CursorMotionType: Gibt die Art der Bewegung an, die vom Mauszeiger ausgeführt wird. Es gibt zwei verfügbare Optionen:
* **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: Bestimmt, ob der Mauszeiger vor dem Ziehen auf die Quelle zeigen soll.
delayBetweenActions Double: Verzögerung (in Sekunden) zwischen den Aktionen, die zum Ausführen des Drag-and-drop-Vorgangs erforderlich sind.
DragAndDrop(TargetAnchorableModel, DragAndDropOptions)
Zieht und legt ein bestimmtes UI-Element ab, das durch das TargetAnchorableModel -Objekt identifiziert wird, während die Drag-and-drop-Aktion angepasst wird.
DragAndDrop(
TargetAnchorableModel target,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
TargetAnchorableModel target,
DragAndDropOptions dragAndDropOptions)
target TargetAnchorableModel: Das UI-Element, das Sie ziehen und ablegen möchten, identifiziert durch das TargetAnchorableModel -Objekt.
dragAndDropOptions DragAndDropOptions: Zusätzliche Optionen zum Anpassen des Drag-and-drop-Vorgangs. Sie können Folgendes anpassen:
* `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)
Zieht und legt ein bestimmtes UI-Element ab, das von einer Laufzeitinstanz eines Object Repository-Elements identifiziert wird, während die Drag-and-drop-Aktion angepasst wird.
DragAndDrop(
RuntimeTarget target,
DragAndDropOptions dragAndDropOptions)
DragAndDrop(
RuntimeTarget target,
DragAndDropOptions dragAndDropOptions)
target RuntimeTarget: Das UI-Element, das Sie ziehen und ablegen möchten, wird durch eine Laufzeitinstanz eines Object Repository-Elements identifiziert.
dragAndDropOptions DragAndDropOptions: Zusätzliche Optionen zum Anpassen des Drag-and-drop-Vorgangs. Sie können Folgendes anpassen:
* `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.
- Definition
- Überladungen
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)