webapp-testing
하는 일
이 도구는 컴퓨터에서 개발 중인 웹사이트를 테스트하도록 돕습니다. 모든 것이 기대대로 작동하는지 확인하고, 페이지의 ‘스크린샷’을 찍고, 오류 메시지를 볼 수 있습니다.
사용하는 경우
- ✓웹사이트의 버튼이 작동하는지 보고 싶을 때.
- ✓웹사이트가 어떻게 보이는지 ‘사진’으로 찍고 싶을 때.
- ✓웹사이트의 오류 메시지가 올바르게 나타나는지 확인하는 경우.
스킬 링크
https://github.com/ComposioHQ/awesome-claude-skills/blob/master/webapp-testing/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“프로필 페이지의 ‘저장’ 버튼이 작동하는지 확인하고 스크린샷을 찍어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
작은 Python 프로그램을 작성합니다. 이 프로그램은 도구를 사용해 웹사이트를 열고, 상호작용하며, 모든 것이 올바른지 확인합니다. 도구는 웹사이트의 서버도 대신 시작할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Web Application Testing
To test local web applications, write native Python Playwright scripts.
Helper Scripts Available:
scripts/with_server.py- Manages server lifecycle (supports multiple servers)
Always run scripts with --help first to see usage. DO NOT read the source until you try running the script first and find that a customized solution is abslutely necessary. These scripts can be very large and thus pollute your context window. They exist to be called directly as black-box scripts rather than ingested into your context window.
Decision Tree: Choosing Your Approach
User task → Is it static HTML?
├─ Yes → Read HTML file directly to identify selectors
│ ├─ Success → Write Playwright script using selectors
│ └─ Fails/Incomplete → Treat as dynamic (below)
│
└─ No (dynamic webapp) → Is the server already running?
├─ No → Run: python scripts/with_server.py --help
│ Then use the helper + write simplified Playwright script
│
└─ Yes → Reconnaissance-then-action:
1. Navigate and wait for networkidle
2. Take screenshot or inspect DOM
3. Identify selectors from rendered state
4. Execute actions with discovered selectors
Example: Using with_server.py
To start a server, run --help first, then use the helper:
Single server:
python scripts/with_server.py --server "npm run dev" --port 5173 -- python your_automation.py
Multiple servers (e.g., backend + frontend):
python scripts/with_server.py \
--server "cd backend && python server.py" --port 3000 \
--server "cd frontend && npm run dev" --port 5173 \
-- python your_automation.py
To create an automation script, include only Playwright logic (servers are managed automatically):
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch(headless=True) # Always launch chromium in headless mode
page = browser.new_page()
page.goto('http://localhost:5173') # Server already running and ready
page.wait_for_load_state('networkidle') # CRITICAL: Wait for JS to execute
# ... your automation logic
browser.close()
Reconnaissance-Then-Action Pattern
Inspect rendered DOM:
page.screenshot(path='/tmp/inspect.png', full_page=True) content = page.content() page.locator('button').all()Identify selectors from inspection results
Execute actions using discovered selectors
Common Pitfall
❌ Don't inspect the DOM before waiting for networkidle on dynamic apps
✅ Do wait for page.wait_for_load_state('networkidle') before inspection
Best Practices
- Use bundled scripts as black boxes - To accomplish a task, consider whether one of the scripts available in
scripts/can help. These scripts handle common, complex workflows reliably without cluttering the context window. Use--helpto see usage, then invoke directly. - Use
sync_playwright()for synchronous scripts - Always close the browser when done
- Use descriptive selectors:
text=,role=, CSS selectors, or IDs - Add appropriate waits:
page.wait_for_selector()orpage.wait_for_timeout()
Reference Files
- examples/ - Examples showing common patterns:
element_discovery.py- Discovering buttons, links, and inputs on a pagestatic_html_automation.py- Using file:// URLs for local HTMLconsole_logging.py- Capturing console logs during automation
자주 묻는 질문
‘headless’는 무엇을 뜻하나요?
브라우저가 화면에 창을 보여 주지 않고 배경에서 실행된다는 뜻이며, 그래서 더 빠릅니다.
‘networkidle’을 기다리는 이유는 무엇인가요?
테스트하거나 스크린샷을 찍기 전에 동적 요소를 포함해 웹사이트가 완전히 로드될 때까지 기다리는 것이 중요합니다. 그래야 최종 결과를 볼 수 있습니다.
‘selectors’란 무엇인가요?
도구가 웹 페이지에서 특정 버튼, 텍스트, 기타 요소를 찾기 위해 쓰는 ‘주소’와 같습니다.
상세 정보
작성자의 원본 설명
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
인기도
- GitHub 스타
- 77k
- 순위
- #2610
- 라이선스
- —
- 업데이트
- 2026. 9. 18.
댓글
- …
이 저장소의 다른 스킬
artifacts-builder
77k복잡한 사용자 인터페이스를 만들도록 에이전트를 돕습니다. 현대 기술을 사용해 풍부하고 상호작용이 있는 웹 페이지를 만듭니다.
brand-guidelines
77k공식 브랜드 색상과 글꼴을 자료에 적용하도록 에이전트를 돕습니다. 회사의 모습을 따라야 하는 자료의 시각 정체성을 유지하는 데 유용합니다.
canvas-design
77k.png와 .pdf 형식의 독창적인 시각 예술 작품을 만들도록 에이전트를 돕습니다. 포스터, 예술 작품, 기타 정적 디자인을 요청할 때 사용하세요.
changelog-generator
77k코드 커밋으로부터 사용자에게 보이는 출시 노트를 만들도록 에이전트를 돕습니다. 기술 정보를 이해하기 쉬운 글로 바꿉니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.