浏览器自动化测试工具

Playwright Project 是一个用于自动化浏览器测试的工具,支持多种测试模式和调试功能。

  • by anbuvino22-bot
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 anbuvino22-bot/AI-Agent-MCP

使用说明

剧作家项目

快速启动

  1. 安装依赖项:
cd '/home/nivensoft/Desktop/AI-Agent MCP/playwright'
npm install
npx playwright install
  1. 运行测试:
npm test

可用脚本

  • npm test --运行剧作家测试
  • npm run test:headed --在头部模式下运行测试
  • npm run test:debug --使用调试器运行测试
  • npm run codegen --开放式剧作家代码生成器

测试文件

  • tests/example.spec.js --示例测试
  • tests/login.spec.js --rahulshettyacademy登录测试