Code generation, replay, and debugging
- Have node installed: https://nodejs.org/en/download/
- Download code and
npm i npx playwright install- Launch the DEBUGGER-START command file (modify the path if needed) - To launch the persistent browser
- Have VS Code extension for Playwright installed (https://marketplace.visualstudio.com/items?itemName=ms-playwright.playwright) and debug/play the test at the code level. Or...
npx playwright testto run from command line.
- The post that helped me get this working: microsoft/playwright#11442
- https://playwright.dev/docs/getting-started-vscode
- https://marketplace.visualstudio.com/items?itemName=ms-playwright.playwright
- https://chromewebstore.google.com/detail/playwright-chrome-recorde/bfnbgoehgplaehdceponclakmhlgjlpd?pli=1
- https://github.com/tmahesh/playwright-agent
lsof -ti:8931 | xargs kill -9 lsof -ti:3000 | xargs kill -9 npx @playwright/mcp@latest --port 8931 --cdp-endpoint http://localhost:9222 npx genkit start -- npx tsx --watch genkit.ts