Playwright Testing logo

Playwright Testing

Community
arozumenko
playwright-testing

Use when a manual-QA agent does live browser testing through the Playwright MCP server — exploring/profiling a web app or executing a web test case against a running app, with no test code generated. Web/PWA/hybrid targets; used by app-profiler and test-runner. Mobile native → use mobile-testing instead.

Overview

Publisherarozumenko
Repositorysdlc-skills
Skill nameplaywright-testing
Stars
26
Forks
10
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by arozumenko on GitHub. Read the source before you install it.

Installation

Install the Playwright Testing AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/arozumenko/sdlc-skills/tree/main/bundles/feature-development/skills/playwright-testing
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/arozumenko/sdlc-skills.git /tmp/sdlc-skills
mkdir -p .claude/skills
cp -r /tmp/sdlc-skills/bundles/feature-development/skills/playwright-testing .claude/skills/playwright-testing
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Playwright Testing in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Playwright Testing on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Playwright Testing is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Playwright Testing (live, via MCP)

Live browser testing for the manual-QA team. You drive a real browser through the Playwright MCP server (@playwright/mcp) to explore a web app or execute a test case step-by-step against a running app. You never write or run Playwright test code — no Page Object Model, no pytest, no .spec.ts files. The output is a verdict plus evidence, not a test suite.

Writing actual Playwright test code is test-automation-engineer's job (a different factory's copy of this skill). Here, the browser is your hands.

When to use

  • app-profiler — explore a running web app: map key flows, capture reliable selectors and fragile areas into app_profile.md.
  • test-runner — execute one web TC-NNN case live: run each step, verify, collect evidence, return a structured result.
  • Web / PWA / hybrid only. Native iOS/Android → use the mobile-testing skill. (PWA/hybrid with a mobile viewport is still this skill.)

Core loop — snapshot first

The Playwright MCP exposes browser_* tools. The loop for every check:

  1. browser_navigate(url) — go to {{base_url}}/path (substitute base_url from the run prompt). Navigation auto-waits for load.
  2. browser_snapshot() — the accessibility snapshot gives each element a target ref plus its role and accessible name. You need the ref before you can act, and role/name is what you assert on.
  3. Act by passing that ref as target (plus a short human-readable element description): browser_click, browser_type, browser_fill_form, browser_select_option, browser_press_key, browser_hover.
  4. browser_wait_for({text}) / ({textGone}) — wait for the expected text to appear, or a spinner/loader text to disappear, before continuing.
  5. browser_snapshot() again, then collect evidence: browser_take_screenshot, browser_console_messages, browser_network_requests.

Refs go stale. Every target ref comes from the latest snapshot — after any navigation or DOM change, re-browser_snapshot before acting again. The server is versioned; this skill is written against the browser_* toolset and parameter names can shift between @playwright/mcp releases.

MCP tool quick reference

ToolKey params (* = required)Use
browser_navigateurl*Go to a URL
browser_snapshot—Accessibility snapshot → element refs (target) + roles/names
browser_clickelement, target*, doubleClick, buttonClick an element
browser_typeelement, target*, text*, submit, slowlyType into one field (submit:true presses Enter after)
browser_fill_formfields*Fill many fields in one call (see below)
browser_select_optionelement, target*, values*Pick option(s) in a native <select>
browser_press_keykey*Press a key (Enter, Escape, ArrowDown, a)
browser_hoverelement, target*Hover
browser_wait_fortext / textGone / timeWait for text to appear / disappear / N seconds
browser_take_screenshottype* (png|jpeg), filename, fullPageCapture evidence
browser_console_messageslevel* (error|warning|info|debug)Read console (use level:"error")
browser_network_requestsstatic*, filterList network calls
browser_handle_dialogaccept*, promptTextAccept/dismiss a native JS dialog/alert
browser_file_uploadpathsUpload file(s) into a file chooser
browser_navigate_back · browser_tabs · browser_resize—Back · tab mgmt · viewport

target* is the ref from the latest browser_snapshot (a unique CSS selector also works); always pass element too — a short description of what you're acting on.

{{base_url}} rule

All test-case URLs are written {{base_url}}/path. Substitute the real base URL from the run prompt into the browser_navigate(url) call at execution time — this keeps cases environment-agnostic across dev / staging / prod.

Filling a form (one call)

browser_fill_form fills every field in a single call. Each field is {element, target, name, type, value}, where type ∈ textbox | checkbox | radio | combobox | slider (checkbox/radio value is "true"/"false"; combobox value is the option text):

browser_snapshot()                       # get refs first
browser_fill_form(fields=[
  {element:"Email field",    target:"<ref>", name:"Email",    type:"textbox",  value:"qa@example.com"},
  {element:"Password field", target:"<ref>", name:"Password", type:"textbox",  value:"Passw0rd!"},
  {element:"Remember me",    target:"<ref>", name:"Remember", type:"checkbox", value:"true"},
])

For a single field, browser_type(element, target, text, submit:true) types and presses Enter in one step.

Mapping test-case steps to MCP tools

Test cases are written in plain language. Map each step verb to a tool call:

TC step verbMCP tool call
Open / Go to Xbrowser_navigate(url:"{{base_url}}/…")
Click / Tap Xbrowser_click(element, target)
Enter V in field Fbrowser_type(element, target, text:"V") — or browser_fill_form for several
Select O from Dbrowser_select_option(element, target, values:["O"])
Press Kbrowser_press_key(key:"K")
Hover over Xbrowser_hover(element, target)
Verify / See Xbrowser_snapshot() then assert the role/name — or browser_wait_for(text:"X")
Take a screenshotbrowser_take_screenshot(type:"png", filename:"…")
Upload filebrowser_file_upload(paths:["…"])
Dismiss alert/confirmbrowser_handle_dialog(accept:true)

Selecting elements from the snapshot

browser_snapshot returns each interactive element with a target ref and its role + accessible name. Prefer, in order: the snapshot's role + accessible name → data-testid → visible text → a stable selector. Avoid brittle positional CSS (nth-child, deep descendant chains). When a clean ref isn't obvious, a unique CSS selector passed as target is valid. Framework-specific selector hints (MUI, shadcn/ui, Ant Design) and gotchas: references/patterns.md.

Waiting

browser_navigate and the action tools auto-wait for the page/element. For app-side state, use browser_wait_for — never a fixed sleep when a condition works:

SituationCall
Expected content appearsbrowser_wait_for(text:"Welcome back")
Spinner / loader clearsbrowser_wait_for(textGone:"Loading…")
Nothing observable to key onbrowser_wait_for(time:1) — last resort

Evidence and verification before PASS

  • browser_take_screenshot(type:"png", filename:"reports/screenshots/{TC_ID}_{YYYY-MM-DD}.png") — visual proof. (Filenames are relative to the MCP output dir.)
  • browser_console_messages(level:"error") — check for silent JS errors even when the UI looks fine; they're the worst bugs. browser_network_requests confirms the API calls actually fired.
  • Verify the Expected Final State in a final browser_snapshot before recording PASS. A PASS without a confirming snapshot of the expected state is invalid (apply verification-before-completion).

Failure handling

On a mismatch, apply systematic-debugging:

  1. browser_snapshot + browser_take_screenshot — capture evidence first.
  2. State actual vs expected ("Login screen still visible; expected Dashboard").
  3. Retry once with a better target (different selector strategy).
  4. Still failing → record FAIL with a snapshot excerpt in failure_reason.

Result hand-off

When run by test-runner inside a led suite, end the response with the single structured JSON result block the test-run-lead collects (tc_id, result PASS/FAIL/BLOCKED, steps, screenshot, failure_reason, …). The lead and test-reporter consume that block — see the test-runner agent for the exact schema.

Bug report format

When you find an issue (outside a structured run):

## [SEVERITY] Title
Steps: 1. Navigate to… 2. Click… 3. Observe…
Expected: what should happen
Actual: what happens
Evidence: screenshot, console error, network response
Frequency: Always / Intermittent / Once

Reference

references/patterns.md — live interaction recipes (login, forms, dialogs, dropdowns, file upload) as exact browser_* call chains, framework-specific selector hints, and common gotchas.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Playwright Testing AI skill do?

Use when a manual-QA agent does live browser testing through the Playwright MCP server — exploring/profiling a web app or executing a web test case against a running app, with no test code generated. Web/PWA/hybrid targets; used by app-profiler and test-runner. Mobile native → use mobile-testing instead.

Why use Playwright Testing on TypingMind?

Because you install it once and use it with any model. Playwright Testing is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Playwright Testing in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/arozumenko/sdlc-skills/tree/main/bundles/feature-development/skills/playwright-testing. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Playwright Testing?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Playwright Testing?

As many as you like. As long as a model supports skills, you can use Playwright Testing with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Playwright Testing AI skill free?

Yes. It is published on GitHub by arozumenko under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇