What problem does it solve?
It removes guesswork when a site’s mobile layout, viewport sizing, and rendering differ from desktop by letting you inspect the experience in a Playwright-launched iPhone-sized browser viewport.
Core Features & Use Cases
- Guided iPhone viewport probing: Opens a target URL in a headed Playwright browser and resizes to the standard iPhone 17 CSS viewport (402x874) for responsive checks.
- Human-driven UI inspection loop: Uses snapshot/screenshot plus single visible actions (click, fill, type, press, resize, or navigate) to quickly reach a state needed for follow-up testing.
- Deterministic verification: Evaluates and confirms active viewport metrics (innerWidth/innerHeight, DPR, UA, touch points) and provides the current URL/title context.
Quick Start
Use playwright-iphone to open https://dcss.vercel.app in the iPhone 17 Playwright viewport, resize to 402 by 874, then report the current URL and verified viewport metrics.