playwright-mcp_skill

This skill automates browser testing and UI validation for Playwright MCP, helping you verify accessibility, responsiveness, and reliable interactions in web
  • Python

26

GitHub Stars

2

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill sfc-gh-dflippo/snowflake-dbt-demo --skill playwright-mcp

  • mcp-config.json116 B
  • SKILL.md4.4 KB

Overview

This skill automates browser testing, web scraping, and UI validation using Playwright MCP. It focuses on reliable Streamlit and web UI checks, accessibility snapshots, responsive testing, and automated interactions to validate behavior before deployment.

How this skill works

The skill drives a Playwright MCP server to navigate pages, wait for dynamic content, interact with elements, and capture snapshots and screenshots. It uses accessibility-tree snapshots for AI-assisted analysis, console and network checks for error detection, and size changes for responsive validation.

When to use it

  • End-to-end testing for Streamlit apps or web UIs
  • Automated form and workflow validation before release
  • Accessibility audits using accessibility-tree snapshots
  • Responsive design checks across mobile, tablet, and desktop sizes
  • Visual regression and screenshot documentation
  • Web scraping when structured navigation and interaction are required

Best practices

  • Take an accessibility snapshot (browser_snapshot) before interacting to get stable element refs
  • Wait for content (3–5 seconds or use browser_wait_for conditions) before asserting or taking screenshots
  • Batch-fill form fields with browser_fill_form to speed tests and reduce flakiness
  • Use browser_console_messages with onlyErrors=true to catch JS issues early
  • Resize the viewport and capture screenshots for each target breakpoint to validate responsive layouts

Example use cases

  • Pre-deployment smoke tests: verify pages load, forms submit, and no console errors appear
  • Accessibility sweep: capture snapshots, ensure labels and heading hierarchy exist, flag missing semantics
  • Responsive validation: resize to 375x667, 768x1024, 1920x1080 and capture screenshots for comparison
  • Form workflow testing: batch-fill inputs, submit, wait for success text, and verify resulting UI state
  • Visual regression: capture full-page screenshots and compare against baselines to detect unintended changes

FAQ

Take a browser_snapshot to get stable element refs, then use those refs for clicks and assertions. Also prefer waiting for specific content or element states before interacting.

What to do if screenshots are blank?

Ensure the page is fully loaded before capturing: increase wait time or use browser_wait_for with element/text conditions. Verify MCP and browsers are installed and running.

How can I detect JavaScript errors during tests?

Use browser_console_messages with onlyErrors=true and check network requests for 4xx/5xx responses to catch client-side failures.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational