> ## Documentation Index
> Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# dragAndDrop

> Drag one element onto another.

Drags from one target and drops onto another. There is no simplified form.
`from` and `to` are required.

## Parameters

| Parameter       | Type      | Required | Description                                                 |
| --------------- | --------- | -------- | ----------------------------------------------------------- |
| `from`          | `string`  | Yes      | Drag source description or percent pair.                    |
| `to`            | `string`  | Yes      | Drop target description or percent pair.                    |
| `hoverDuration` | `number`  | No       | Milliseconds to hold before starting the drag.              |
| `dragDuration`  | `number`  | No       | Milliseconds the drag gesture takes.                        |
| `saveAs`        | `string`  | No       | Variable to store this step's return value on `env.<name>`. |
| `retries`       | `number`  | No       | Times to retry the step on failure before failing the test. |
| `skipped`       | `boolean` | No       | Skip this step at execution time.                           |

## Examples

```yaml theme={null}
- dragAndDrop:
    from: the "Draft" card
    to: the "Done" column
    dragDuration: 800 # slow the gesture so the drop registers
```

## Related

* [Test format](/core-concepts/test-format)
