Skip to content

Booting up CDP server on mac doesn't work with playwrightΒ #774

@j93hahn

Description

@j93hahn

Using version f12e9b6

I run ./lightpanda serve --host 127.0.0.1 --port 9222, then attempt to connect to the server with this simple playwright code:

import playwright from "playwright";

const browser = await playwright.chromium.connectOverCDP(
  "ws://127.0.0.1:9222,
);
const context = await browser.newContext();
const page = await context.newPage();

and it either hangs indefinitely, or returns an error message like this:

Page.route: Target page, context or browser has been closed

The situation is the same with python playwright. But with puppeteer, it seems the code works fine out-of-the-box.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions