# Playwright Ws

> Browser automation via remote Playwright WebSocket server for screenshots, PDFs and testing.

- Skill: `dvcrn/playwright-ws` (Agent Skill, multi-file: 21 files)
- Install (CLI): `npx skillmds@latest add dvcrn/playwright-ws`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dvcrn/playwright-ws/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dvcrn (https://skillmd.com/u/dvcrn)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/dvcrn/playwright-ws

---


# Playwright Skill

Remote browser automation via Playwright WebSocket server. No local browser installation required.

## Use Cases

| Task | Script | Description |
|------|--------|-------------|
| Screenshot | `scripts/screenshot.js` | Capture screenshots of web pages |
| PDF | `scripts/pdf-export.js` | Generate PDFs from URLs |
| Test | `scripts/test-runner.js` | Run Playwright tests remotely |

## Installation

```bash
cd playwright-skill
npm install
export PLAYWRIGHT_WS=ws://your-server:3000
```

## Quick Start

```bash
# Screenshot
node scripts/screenshot.js https://example.com screenshot.png --full-page

# PDF
node scripts/pdf-export.js https://example.com page.pdf
```

## Configuration

Set `PLAYWRIGHT_WS` environment variable to your Playwright WebSocket URL:

```bash
export PLAYWRIGHT_WS=ws://your-playwright-server:3000
```

## Scripts

- `screenshot.js` - Take screenshots with options
- `pdf-export.js` - Generate PDFs
- `test-runner.js` - Run remote tests

## References

- `references/selectors.md` - Selector strategies
- `references/api-reference.md` - API documentation
