Browser Screenshots
Quick browser screenshots for debugging web applications
Quick Start
Take a screenshot in one command - no setup required:
Command Format
Examples
Basic Screenshots
Save to Specific Path
Device Sizes
Device Presets
Preset | Dimensions | Device | Icon |
---|---|---|---|
iphone | 390×844 | iPhone 14/15 | |
android | 360×800 | Common Android | |
ipad | 768×1024 | iPad | |
desktop | 1920×1080 | Full HD Desktop |
Complete Examples
Use Cases
Debug Local Development
Quick visual checks during development
Document Bugs
Capture visual proof of issues
Test Responsive Design
Verify layouts across devices
for size in iphone android ipad desktop; do co -b "screenshot localhost:3000 save to view-$size.png size $size" done
CI/CD Integration
Automated visual testing
URL Handling
The command intelligently handles URLs:
Installation
Standard Installation
Browser features require Playwright:
With Browser Support
Or install ConnectOnion with browser support:
Framework Examples
Next.js
FastAPI
Django
React Dev Server
Common Error Messages
Tips
Quick Debug
Just co -b "screenshot localhost:3000"
for instant feedback
Organize Screenshots
Use descriptive paths like save to bugs/issue-123.png
Test Viewports
Use device names (iphone
, ipad
) for common sizes
Timestamps
Default filenames include timestamp for versioning
Limitations
- •Screenshots only (no interaction, clicking, forms)
- •Single page at a time
- •Headless browser only
- •PNG format only
For complex browser automation, use the full ConnectOnion browser agent or Playwright directly.
Summary
The -b
flag provides dead-simple browser screenshots. No setup, no complexity - just describe what screenshot you want and where to save it. Perfect for debugging during development.