Browser automation with remote browser via dockette/neko using Chrome DevTools Protocol (CDP).
npm installStart the remote browser using Docker Compose:
docker compose up| Port | Description |
|---|---|
| 8080 | Neko UI |
| 19222 | CDP endpoint |
Access browser UI at http://localhost:8080.
Connect to the remote browser via CDP:
import { chromium } from "@playwright/test";
const browser = await chromium.connectOverCDP('http://localhost:19222');Run Playwright tests:
npx playwright testNavigate to https://news.ycombinator.com and extract the top 5 stories.
Go to https://f3l1x.io and find all info about the person behind the site.