Drag elements from one location to another
Field Name | Type | Required | Description |
---|---|---|---|
Source Locator | string | Yes | CSS selector for the element to drag |
Target Locator | string | Yes | CSS selector for the drop destination |
.file-item[data-filename='document.pdf']
.upload-dropzone
.task-item[data-id='task-1']
.task-item[data-id='task-3']
.kanban-card[data-card='feature-123']
.column[data-status='in-progress']
img[alt='Product Photo 1']
.gallery-container
tr[data-row-id='item-5']
tr[data-row-id='item-2']
data-testid
or data-*
attributes for better reliabilitydraggable="true"
attribute or JavaScript drag handlersdraggable="true"
attribute