8000 Booting up CDP server on mac doesn't work with playwright · Issue #774 · lightpanda-io/browser · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Booting up CDP server on mac doesn't work with playwright #774
Open
@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.

3DDA

Metadata

Metadata

Assignees

No one assigned

    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

      0