Action Commands
Individual interaction commands for when you need fine-grained control. For multi-step flows, prefer composite actions withbap act.
click
Click an element.fill
Fill an input field. Clears existing content first.string
required
Element selector targeting the input field.
string
required
The text value to fill.
type
Type text character by character into the focused element. Triggerskeydown, keypress, and keyup events for each character.
string
required
The text to type character by character.
type does not clear existing content. It appends to whatever is already in the field. For form
fields, prefer fill.press
Press a keyboard key or shortcut.string
required
Key name (e.g.,
Enter, Tab, Escape, ArrowDown, Control+a).select
Select an option from a dropdown.string
required
Selector targeting the
<select> element.string
required
The option value or visible text to select.
check / uncheck
Toggle checkboxes.string
required
Selector targeting the checkbox element.
hover
Hover over an element. Useful for triggering hover menus or tooltips.string
required
Selector targeting the element to hover over.
scroll
Scroll the page or scroll an element into view.string
default:"down"
Scroll direction:
up, down, left, right.number
default:"300"
Number of pixels to scroll.
string
When provided, scrolls the element into view instead of scrolling the page.