aiskillstore/marketplace / skills/89jobrien/testing
testing
VerifiedComprehensive testing specialization covering test strategy, automation, TDD methodology, test writing, and web app testing. Use when setting up test infrastructure, writing tests, implementing TDD workflows, analyzing coverage, integrating tests into CI/CD, or testing web applications with Playwright. Framework-agnostic approach with framework-specific guidance via reference files.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.4 KB |
| examples/console-logging.pyexecutable | script | 1.0 KB |
| examples/element-discovery.pyexecutable | script | 1.5 KB |
| examples/static-html-automation.pyexecutable | script | 956 B |
| references/framework-workflows.md | markdown | 8.5 KB |
| references/test-patterns.md | markdown | 8.1 KB |
| references/testing-report.template.md | markdown | 3.0 KB |
| references/webapp-testing.md | markdown | 8.4 KB |
| scripts/with-server.pyexecutable | script | 3.9 KB |
| skill-report.json | config | 53.6 KB |
examples/element-discovery.py
View on GitHubimport tempfile
from pathlib import Path
from playwright.sync_api import sync_playwright
# Example: Discovering buttons and other elements on a page
with sync_playwright() as p:
browser = p.chromium.launch(headless=True)
page = browser.new_page()
# Navigate to page and wait for it to fully load
page.goto("http://localhost:5173")
page.wait_for_load_state("networkidle")
# Discover all buttons on the page
buttons = page.locator("button").all()
print(f"Found {len(buttons)} buttons:")
for i, button in enumerate(buttons):
text = button.inner_text() if button.is_visible() else "[hidden]"
print(f" [{i}] {text}")
# Discover links
links = page.locator("a[href]").all()
print(f"\nFound {len(links)} links:")
for link in links[:5]: # Show first 5
text = link.inner_text().strip()
href = link.get_attribute("href")
print(f" - {text} -> {href}")
# Discover input fields
inputs = page.locator("input, textarea, select").all()
print(f"\nFound {len(inputs)} input fields:")
for input_elem in inputs:
name = input_elem.get_attribute("name") or input_elem.get_attribute("id") or "[unnamed]"
input_type = input_elem.get_attribute("type") or "text"
print(f" - {name} ({input_type})")
# Take screenshot for visual reference
screenshot_path = Path(tempfile.gettempdir()) / "page_discovery.png"
page.screenshot(path=str(screenshot_path), full_page=True)
print(f"\nScreenshot saved to {screenshot_path}")
browser.close()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |