playwright-explore-website

作者: github

使用 Playwright 自動探索網站並生成測試案例。導航至提供的 URL,系統性地識別 3-5 項核心功能與用戶流程。記錄每個互動的 UI 元素、定位器及預期結果。根據探索結果生成測試案例,可直接用於測試工作流程。自動管理瀏覽器上下文生命週期,完成後關閉會話。

npx skills add https://github.com/github/awesome-copilot --skill playwright-explore-website

Website Exploration for Testing

Your goal is to explore the website and identify key functionalities.

Specific Instructions

  1. Navigate to the provided URL using the Playwright MCP Server. If no URL is provided, ask the user to provide one.
  2. Identify and interact with 3-5 core features or user flows.
  3. Document the user interactions, relevant UI elements (and their locators), and the expected outcomes.
  4. Close the browser context upon completion.
  5. Provide a concise summary of your findings.
  6. Propose and generate test cases based on the exploration.