Step API
Complete reference for all step actions available in scenario definitions.
Navigation
goto
Navigate to a URL.
{
"action": "goto",
"url": "/dashboard"
}Interactions
click
Click an element.
{
"action": "click",
"selector": "[data-testid='submit']",
"description": "Click submit button"
}type
Type text into an input.
{
"action": "type",
"selector": "#email",
"text": "user@example.com"
}hover
Hover over an element.
{
"action": "hover",
"selector": "[data-testid='dropdown']"
}Waiting
wait
Pause for a fixed duration.
{
"action": "wait",
"ms": 1000
}waitFor
Wait for an element to appear.
{
"action": "waitFor",
"selector": ".loading-complete",
"timeout": 5000
}Capture
capture
Take a screenshot or video.
{
"action": "capture",
"key": "dashboard-hero",
"selector": "[data-testid='hero']",
"type": "screenshot",
"crop": { "x": 0, "y": 0, "width": 800, "height": 600 }
}Selectors
Poliage supports multiple selector formats:
Prefer data-testid attributes for stable, maintainable selectors.