DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to map a web app's flows with playwright-cli before testing with Agentic Playwright

Use playwright-cli to explore a live app, trace its flows, and inspect storage before writing tests.

Short answer: Scaffold the project with npm create agentic-playwright . -- --bare if your app URL is not the demo app; then 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. All steps.

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

  1. Scaffold the project with npm create agentic-playwright . -- --bare if your app URL is not the demo app.
  2. Ask the assistant to use playwright-cli to open <app-url> and walk through the main flows such as login and search.
  3. Review the captured traces, screenshots, and storage details the exploration produced.
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer