Logo di Playwright Testing

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.

Panoramica

Autorearozumenko
Repositorysdlc-skills
Nome della skillplaywright-testing
Stelle
26
Fork
10
File inclusi
2
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 2 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da arozumenko su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Playwright Testing in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/arozumenko/sdlc-skills/tree/main/bundles/feature-development/skills/playwright-testing
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Playwright Testing in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Playwright Testing non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Playwright Testing non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Playwright Testing su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Playwright Testing è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Playwright Testing in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/arozumenko/sdlc-skills/tree/main/bundles/feature-development/skills/playwright-testing. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Playwright Testing?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Playwright Testing?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Playwright Testing: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Playwright Testing è gratuita?

Sì. È pubblicata su GitHub da arozumenko con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇