Overview
Actions are the building blocks of webreel recordings. Each step in thesteps array defines an action to perform.
Common Fields
All actions (exceptpause) support these optional fields:
Milliseconds to wait after completing the action. Overrides the video’s
defaultDelay.Custom text to display in the HUD overlay during this action. Overrides the default action label.
Internal description for documentation purposes. Not displayed during recording.
Element Targeting
Many actions accept element targeting fields:Finds an element by its visible text content.
CSS selector to target a specific element.
CSS selector to scope the search within a container element.
Specify either
text or selector, not both. Use within to disambiguate when multiple matching elements exist.Actions Reference
pause
Wait for a duration without performing any action.Action type.
Milliseconds to pause.
The
pause action does not accept a delay field. Use ms to control the pause duration.click
Move the cursor to an element and click it.Action type.
Find element by visible text.
CSS selector to target element.
Scope search to a container.
Modifier keys to hold during the click. Valid values:
"shift", "ctrl", "alt", "cmd", "meta".Milliseconds to wait after clicking.
Custom HUD label.
type
Type text character by character into a focused element.Action type.
Text to type.
CSS selector of the input element. If omitted, types into the currently focused element.
Scope search to a container.
Milliseconds to wait between each character.
Milliseconds to wait after typing completes.
Custom HUD label.
key
Press a key or key combination.Action type.
Key or key combo to press. Examples:
"Enter", "cmd+s", "shift+cmd+p".Common keys:- Letter keys:
"a","b","z" - Special keys:
"Enter","Escape","Tab","Backspace","Delete" - Arrow keys:
"ArrowUp","ArrowDown","ArrowLeft","ArrowRight" - Modifiers:
"cmd","ctrl","shift","alt","meta"
Element to focus before pressing the key. Can be a CSS selector string or an element target object.
Milliseconds to wait after pressing the key.
Custom HUD label.
scroll
Scroll the page or a specific element.Action type.
Horizontal scroll position in pixels.
Vertical scroll position in pixels.
CSS selector of the element to scroll. If omitted, scrolls the page.
Find element to scroll by visible text.
Scope search to a container.
Milliseconds to wait after scrolling.
Custom HUD label.
wait
Wait for an element to appear in the DOM.Action type.
CSS selector of the element to wait for.
Wait for element with visible text.
Scope search to a container.
Maximum milliseconds to wait before failing.
Milliseconds to wait after element appears.
Custom HUD label.
drag
Drag an element from one position to another.Action type.
Source element to drag. Object with
text, selector, and/or within fields.Destination element or position. Object with
text, selector, and/or within fields.Milliseconds to wait after dragging.
Custom HUD label.
moveTo
Move the cursor to an element without clicking.Action type.
Find element by visible text.
CSS selector to target element.
Scope search to a container.
Milliseconds to wait after moving.
Custom HUD label.
hover
Hover over an element, triggering CSS:hover effects.
Action type.
Find element by visible text.
CSS selector to target element.
Scope search to a container.
Milliseconds to wait after hovering.
Custom HUD label.
navigate
Navigate to a new URL mid-recording.Action type.
URL to navigate to. Can be absolute or relative to the video’s
baseUrl.Milliseconds to wait after navigation completes.
Custom HUD label.
screenshot
Capture a PNG screenshot at the current point in the recording.Action type.
File path for the screenshot. Relative to the video’s
outDir.Milliseconds to wait after capturing the screenshot.
Custom HUD label.
select
Select a value in a dropdown (<select>) element.
Action type.
Value to select (matches the
<option> element’s value attribute).CSS selector of the
<select> element.Find
<select> element by nearby text.Scope search to a container.
Milliseconds to wait after selecting.
Custom HUD label.