起步命令
起步命令
npm init playwright@latest
npx playwright test
npx playwright test --headed首次使用需安装浏览器二进制:npx playwright install --with-deps。
Playwright 以单一 API 驱动 Chromium、Firefox 与 WebKit,默认自动等待并内置报告、trace 与重试;npx playwright test 运行测试,支持 TypeScript、Python、Java、.NET 绑定。
npm init playwright@latest
npx playwright test
npx playwright test --headed