capture screenshot
Capture a PNG screenshot under the scenario screenshots folder
Write a full-page PNG beside the .stk file under screenshots/.
Syntax
Then I capture screenshot "<basename>"Examples
Then I capture screenshot "checkout-step"Writes {stk-dir}/screenshots/checkout-step.png (creates the directory).
Notes
- Basename only — reject
/,\, and... - Optional
.pngsuffix is added if omitted. - No visual diff in v1 (capture only).
- Does not use action-resolve auto-wait (page-level op).
- Web only for v1.