Set Viewport Size
Browser NodeControl the size of the browser viewport
Overview
The Set Viewport node controls the size of the browser viewport. This affects how responsive websites render and is essential for consistent screenshots, coordinate-based clicks, and mobile/tablet testing.
WidthViewport width in pixels
12801920, 1280, 375HeightViewport height in pixels
7201080, 800, 667Common Viewport Sizes
1920 × 1080 - Full HD
1440 × 900 - Laptop
1280 × 800 - Small laptop
1024 × 768 - iPad landscape
768 × 1024 - iPad portrait
820 × 1180 - iPad Air
390 × 844 - iPhone 14
375 × 667 - iPhone SE
360 × 640 - Android
When to Use
Set viewport before screenshots to ensure consistent image sizes across runs. Essential for visual comparison or documentation.
If using Click Coordinates, set viewport first. Element positions change with viewport size - a consistent viewport ensures clicks land in the right place.
Test how your automation handles responsive layouts by setting mobile-sized viewports. This changes the size only — it doesn't emulate a mobile device (user agent, touch).
Some elements only appear at certain viewport sizes (hamburger menus, mobile nav). Set the appropriate viewport to access these elements.
Usage Examples
Workflow pattern:
- Open Page: example.com
- Set Viewport: 1920 × 1080 (desktop)
- Screenshot: desktop.png
- Set Viewport: 768 × 1024 (tablet)
- Screenshot: tablet.png
- Set Viewport: 375 × 667 (mobile)
- Screenshot: mobile.png