Configuration
Here’s the completewebreel.config.json for this example:
What It Demonstrates
Drag Action
Thedrag action simulates drag-and-drop with smooth cursor movement:
from: The element to drag (supportstext,selector, orposition)to: The drop targetdelay: Pause after completing the drag
Scoped Targeting with Within
Thewithin field scopes the search to a specific container:
.column-todo element, avoiding ambiguity.
Move To Action
Before dragging, the cursor moves to hover over the element:Animated Cursor Movement
Webreel automatically animates the cursor during drag operations, creating smooth movement from the source to the destination. The cursor path is calculated to feel natural and human-like.Multiple Drags
The example demonstrates two consecutive drag operations:- Move “Write unit tests” from Todo to In Progress
- Move “Build API endpoints” from In Progress to Done
Running the Example
videos/drag-and-drop.mp4.
Next Steps
- Form Filling - Learn about typing interactions
- Page Scrolling - Scroll the page and containers
- Custom Theme - Customize the cursor appearance