UiPath Documentation
activities
latest
false
UIAutomation-Aktivitäten
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

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.

Diese API muss nach Open oder Attach hinzugefügt werden.

Definition​

Namespace: UiPath.UIAutomationNext.API.Models

Assembly: UiPath.UIAutomationNext.API.Models (in der DLL-Datei UiPath.UIAutomationNext.API.Models)

Überladungen​

ÜberladenBeschreibung
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.

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben