garris / garris/BackstopJS

Allow using remote Chrome with puppeteer

Open
#1,002 9 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.