Configuration
Here’s the completewebreel.config.json for this example:
What It Demonstrates
Screenshot Action
Thescreenshot action captures the current page state as a PNG:
output: Filename for the screenshot (saved in the working directory)delay(optional): Pause after taking the screenshot
Multiple Screenshots
You can capture multiple screenshots throughout a recording:- Initial hero section
- After clicking “Features”
- After scrolling to the features section
Combining Screenshots with Interactions
Screenshots work seamlessly with all other actions:-
Click: Capture before and after click states
-
Scroll: Capture different viewport positions
-
Type: Capture form states
Screenshot Output Location
Screenshots are saved in the current working directory by default. You can specify paths:High-Resolution Output
Thezoom: 2 setting applies to screenshots too:
Use Cases
Screenshots are ideal for:- Documentation images for guides and tutorials
- Marketing assets showing product features
- Social media preview images
- Before/after comparisons
- Error state captures for bug reports
Screenshots and Videos Together
A single recording can produce both a video and multiple screenshots:videos/screenshots.mp4(the full video)hero.png(screenshot 1)after-click.png(screenshot 2)features.png(screenshot 3)
Running the Example
- Video:
videos/screenshots.mp4 - Screenshots:
hero.png,after-click.png,features.png
Next Steps
- GIF Output - Export as animated GIF
- WebM Output - Export as WebM video
- Custom Theme - Customize screenshot appearance