使用 Codegen 的 Playwright 测试生成器
Records and generates end-to-end test scripts using Playwright Codegen with multi-browser targeting. Produces TypeScript test files compatible with Playwright Test runner, handles visual regression via playwright-visual-regression plugin, and integrates with Allure reporting.
Installation
Use the upstream install or setup path that matches your environment:
- npm install -g @playwright/cli@latest
- npm i playwright
Requirements and caveats from upstream:
- Playwright is also available for Python, .NET, and Java.
Basic usage or getting-started notes:
- bash
- Optionally install skills for richer agent integration:
- playwright-cli install --skills
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/microsoft/playwright/HEAD/README.md