Drag-and-Drop
Thedrag action simulates dragging elements from one position to another, perfect for kanban boards, file managers, and reorderable lists.
Basic Drag
Drag an element by text or selector:from and to support:
text: Find element by visible text contentselector: Find element by CSS selectorwithin: Scope the search to a container
Scoped Drag
When multiple elements have the same text, usewithin to narrow the search:
Drag Physics
Drag operations use realistic motion:- Bezier curves: The path arcs naturally, not straight lines
- Variable speed: Faster in the middle, slower at start/end
- Distance-based timing: Longer drags take proportionally more time
Visual Feedback
During drag:- Cursor scales down to 0.75x (pressing)
- Ghost element created showing dragged item
- DragEvent sequence fires (dragstart, dragover, drop, dragend)
- Ghost fades out on drop
- Cursor scales back to 1x
Preview Before Drag
UsemoveTo to hover before dragging:
Scrolling
Webreel supports both page scrolling and element-specific scrolling.Page Scrolling
Scroll the entire page:Scroll Up
Use negative values to scroll back up:Element Scrolling
Scroll within a specific element (like a sidebar or modal):Scroll to Element
Scroll an element containing specific text:Smooth Scrolling
All scroll actions usebehavior: "smooth" for natural motion:
Modifier Clicks
Click while holding modifier keys (Cmd, Ctrl, Shift, Alt) for multi-select, context menus, and special actions.Basic Modifier Click
Multiple Modifiers
Combine multiple modifiers:Available Modifiers
| Modifier | Aliases | Common Use |
|---|---|---|
cmd | meta | Multi-select on macOS |
ctrl | control | Multi-select on Windows/Linux, context menu |
shift | - | Range selection |
alt | - | Alternative actions |
mod | - | Auto-resolves to cmd on macOS, ctrl elsewhere |
Platform-Aware Modifier
Usemod to automatically use the correct modifier for the platform:
cmd on macOS and ctrl on Windows/Linux.
Multi-Select Example
From the modifier-clicks example:- Cmd-click to select first file
- Cmd-click to add second file to selection
- Cmd-click to add third file
- Press Backspace to delete all selected files
HUD Display for Modifiers
When you click with modifiers, the keystroke HUD automatically appears showing the modifier keys:cmd→ ⌘ (macOS) or Cmdctrl→ Ctrlshift→ ⇧alt→ ⌥
Keyboard Shortcuts
Press complex keyboard shortcuts with thekey action.
Basic Shortcut
Multiple Modifiers
Special Keys
Custom Label
Override the HUD display text:Keyboard Shortcuts Example
From the keyboard-shortcuts example:- Select All (Cmd+A)
- Bold (Cmd+B)
- Save (Cmd+S)
- Command Palette (Cmd+K)
- Cancel (Escape)
Multi-Step Interaction Patterns
Form Filling Flow
Complete multi-step form:Navigate and Interact
Hover, Then Act
Conditional Waiting
Wait for elements to appear before interacting:Advanced Timing Control
Per-Step Delay
Override default delay for specific steps:Character Delay in Typing
Control typing speed:- Lower values: Faster typing (feels robotic)
- Higher values: Slower typing (more deliberate)
- Default: 120ms with random variation
Click Dwell Time
Control pause before clicking:Move Without Clicking
UsemoveTo to preview hover states:
Select Dropdown Values
Change dropdown selection:<select> element’s value and fires change events.
Navigate Mid-Recording
Change pages during a recording:navigate action loads a new URL mid-video.
Capture Screenshots
Take PNG screenshots at specific points:Next Steps
Troubleshooting
Common issues and solutions
Actions Reference
Complete action API reference
Examples
Browse all example recordings