浏览器自动化测试工具

PlayWright MCP Agent是一款基于Playwright的浏览器自动化测试工具,支持通过MCP协议与客户端交互,适用于网站自动化测试和功能验证。

  • by coinse
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 coinse/cs454-mcp-tutorial

使用说明

CS454 MCP教程(251204)

PlayWright MCP代理

  • 无需修改,使用给定的客户端运行一个简单的MCP服务器

    • python web_tester_chat.py
  • 使用NPX命令连接Playwright MCP服务器后:

    • python web_tester_chat_ref.py
  • 硬编码工具,用于启动目标网站的测试运行:

    • python web_tester_actor_ref.py https://sciencedirect.com

Pytest代理

  • python pytest_mcp_client.py pytest_mcp_server.py "please list files” (用于检查 list_files MCP功能调用)
    • 将执行跟踪打印为JSON文件