question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow using remote Chrome with puppeteer

See original GitHub issue

Puppeteer allows connecting to chrome via a web socket or URL.

See: Puppeteer docs

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).

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
garriscommented, Mar 10, 2019

This is cool – thank you! I have some changes on the npm canary branch that need to be released. I will try to get those out next week, then we can merge these and put it out on the canary branch. More later. Cheers!

0reactions
danielepolenciccommented, Oct 31, 2020

I’m interested in this as well. I’d like to leverage a service such as browserless.io instead of maintaining my own puppeteer locally. Happy to help with rebasing/amending the PR if it can be merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Puppeteer: Chrome Remote Launch - node.js - Stack Overflow
To demonstrate what puppeteer is doing i want to launch a chrome in non headless mode on the host system. Is this possible?...
Read more >
Connecting Puppeteer to Existing Chrome Window w - Medium
Right click on your Google Chrome shortcut icon => Properties; In Target field, add to the very end --remote-debugging-port=9222.
Read more >
chrome-remote-interface - npm
const CDP = require('chrome-remote-interface'); async function example() { let client; try { // connect to endpoint client = await CDP(); // ...
Read more >
Puppeteer API service for web scraping - Pixeljets
Okay, let's admit it - web scraping via Puppeteer and Playwright is the ... First and foremost: do not use real Chrome browser...
Read more >
Browserless - #1 Web Automation & Headless Browser ...
Browserless is a web-service that allows for remote programs to connect, pilot, and execute headless browser tasks — all inside of docker. It...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found