Who it is forA QA engineer facing an unfamiliar web application who needs to learn its screens and flows before writing test cases.
The problemWriting tests against an app you have not explored leads to guessed selectors and missed flows.
The outcomeA captured view of the app's UI, navigation, and storage state that you can use to plan page objects and test cases.
What you need first
- Node.js v22.x or later
- npm v10.x or later
- An empty directory or empty git repo for the test project
- A web application URL to test, or the --demo option to try the bundled demo app
Steps
- Scaffold the project with
npm create agentic-playwright . -- --bareif your app URL is not the demo app. - Ask the assistant to use playwright-cli to open <app-url> and walk through the main flows such as login and search.
- Review the captured traces, screenshots, and storage details the exploration produced.
- Use the findings to create page objects and test cases in the project.
Prompt for your agent
In the agentic-playwright repo, use playwright-cli to explore <app-url> and capture the login and main navigation flows. Expected output: a summary of screens, selectors, and storage state that is usable for page objects. Verify the summary names the flows walked and that no test code was changed.
Caveat. The README names playwright-cli as the default exploration path but does not give its exact command syntax, so check the playwright-cli skill's own documentation for usage.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for idavidov13/agentic-playwright and "Map a web app's flows with playwright-cli before testing"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer