webapp-testing

active

0xdbcefadc199bf7c4baac7e16a957b7c82d0729aaa510ebd34d14ec57e9628c11

Interact with and test local web applications using Playwright: verify frontend functionality, debug UI behavior, capture browser screenshots, and read browser logs.

Skill body

Web Application Testing

Test local web apps by writing native Playwright scripts.

Decision tree

  • Static HTML → read the file to find selectors → write a Playwright script.
  • Dynamic app → ensure the dev server is running, then drive the page with Playwright (navigate, click, type, assert), capturing screenshots and console logs.

Tips

  • Prefer role/label selectors over brittle CSS.
  • Capture a screenshot + console log on failure for fast debugging.
  • Manage server lifecycle around the test run.

Imported into Atrium from the Anthropic Skills collection.