Allow using remote Chrome with puppeteer
Open
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 621
- PR merge metrics
- No merged PRs in 30d
Description
Puppeteer allows connecting to chrome via a web socket or URL.
See: [Puppeteer docs](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerconnectoptions)
This would disallow using args (they'd have to be added on the browser-side), though.
Proposal:
Add a `remoteOptions` key to `engineOptions` (or maybe a separate `remote: bool` flag, too?); when this is filled, use `await puppeteer.connect()` instead of `puppeteer.launch()`.
Use cases:
- It would be beneficial mainly for dockerized environments, as it would be more in-line with the docker way (one process per container).
Contributor guide
Assessment
This issue has not been assessed yet.