How To Automatically Screenshot Modals, Dropdowns and Tabs
Two ways to capture an open modal, an expanded dropdown or a selected tab for your docs, and keep them current: a Playwright script you maintain, or views that follow plain-language steps.
A screenshot of a page as it loads shows none of these states. Each one needs a browser that clicks first. With Playwright you script the clicks; with ScreenshotAgent you describe them, and both can run again after every release.
Step-by-step implementation
FAQ
- Which should I use?
- If engineers own the docs and already run Playwright, a script costs nothing extra and lives in your repo. If writers or support keep the screenshots current, or the UI changes often, views avoid maintaining selectors: views you describe in plain words are followed by the AI agent on every recapture, so a renamed or moved button is still found by its description.
- What about pages behind a login?
- In Playwright, sign in first and save the session with storageState. In ScreenshotAgent, save the login on the project and views use it.
- Can views nest?
- Yes: a modal on a page, then a tab inside that modal, each with its own screenshot and version history.
Run this guide in ScreenshotAgent
Start with one project and apply this workflow to keep screenshots accurate with less effort.
Start free trial14-day trial · 5 captures free · No card required