playwright-interactive

Maintain persistent Playwright handles for iterative debugging of web and Electron apps.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/peteanderson80/skills --skill playwright-interactive-peteanderson80
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-interactive
Source: https://github.com/peteanderson80/skills/tree/main/skills/playwright-interactive
Command: npx skills add https://github.com/peteanderson80/skills --skill playwright-interactive-peteanderson80

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging local web and Electron apps can be brittle without a stable Playwright session; this Skill provides a persistent Playwright session to keep handles alive across iterations, reducing restart overhead and improving debugging cycle time.

Core Features & Use Cases

  • Persistent web and Electron QA session: reuse page, context, and appWindow handles across commands.
  • Supports iterative debugging workflows: step through UI changes, re-run tests, and capture QA evidence without restarting the runtime.
  • Safe setup and recovery: provides guidance to enable js_repl and run a bootstrap to refresh the session when ownership changes.

Quick Start

Enable js_repl, install Playwright, and bootstrap a persistent session in your project directory before debugging.

Frequently Asked Questions about playwright-interactive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep Playwright handles valid during iterative debugging?

To keep Playwright handles valid during iterative debugging, use a persistent session that maintains browser, context, page, and electronApp bindings across steps. This prevents the loss of references when running repeated tests without restarting your toolchain.

Why does my Playwright session disconnect when stepping through UI changes?

Your Playwright session disconnects because standard runtime instances terminate between commands, losing handle ownership. Bootstrapping a persistent session at project startup ensures bindings remain alive, preventing restart overhead and disconnection during UI changes.

Can I debug local Electron apps with a persistent Playwright session?

Yes, you can debug local Electron apps with a persistent Playwright session. The session retains the electronApp and appWindow handles, allowing QA engineers to repeatedly run tests and capture visual evidence across iterations without restarting.

Do I need to enable js_repl to use a persistent Playwright session?

Yes, you need to enable js_repl to use a persistent Playwright session. Enabling js_repl allows the runtime to execute JavaScript bindings continuously, which is required to maintain page and context handles throughout your debugging workflow.

What's the best way to recover Playwright handles when ownership changes?

The best way to recover Playwright handles when ownership changes is to run a bootstrap command in your project directory. This refreshes the persistent session and safely restores valid bindings for your web and Electron app debugging.

What are the limitations of using a persistent Playwright session for QA?

A limitation of using a persistent Playwright session is that it requires explicit setup via js_repl and a bootstrap at project startup. If session ownership changes during QA, handles may invalidate unless manually refreshed through the recovery bootstrap.