Skip to content

Latest commit

 

History

History

README.md

Playwright

Browser automation with remote browser via dockette/neko using Chrome DevTools Protocol (CDP).

Setup

npm install

Remote Browser

Start the remote browser using Docker Compose:

docker compose up
Port Description
8080 Neko UI
19222 CDP endpoint

Access browser UI at http://localhost:8080.

Playwright

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 test

Prompts

Navigate 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.

Resources