Playwright connect error on wss://chrome.browserless.io/playwright

This issue has been tracked since 2022-07-17.

Describe the bug
Playwright does not connect and create a new page when using wss://chrome.browserless.io/playwright?token=...

To Reproduce
Steps to reproduce the behavior:

  1. Use the first Playwright sample from browserless doc
    https://docs.browserless.io/docs/playwright.html#playwrightchromiumconnectwsendpoint-string
  2. Set the API key
  3. Run the sample
    Error :
(node:4432) UnhandledPromiseRejectionWarning: browserContext.newPage: TypeError: Cannot read property '_object' of undefined

Expected behavior
Sample should complete and takes screenshot.

Please note :

  • connectOverCDP works
  • sample using browserless/chrome:latest Docker image works

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome from browserless
jfgreffier wrote this answer on 2022-08-04

My bad. My Playwright version was not aligned with browserless' one. See https://www.browserless.io/docs/versions

More Details About Repo
Owner Name browserless
Repo Name chrome
Full Name browserless/chrome
Language TypeScript
Created Date 2017-11-17
Updated Date 2023-03-22
Star Count 5309
Watcher Count 47
Fork Count 516
Issue Count 29

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date