Live data from Hacker News

Prototype: Puppeteer for Firefox

github.com

91–100 of 133 posts

Re: Prototype: Puppeteer for Firefox

#91

In case you're wondering, and the linked page doesn't explain: > Puppeteer is a Node library which provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome or Chromium. https://developers.google.com/web/tools/puppeteer/

I always find it weird that people constantly try to "sell" me (us) something but never tell me what that thing is or why I want it.

Re: Prototype: Puppeteer for Firefox

#92
post #62
post #55

Earlier quoted context omitted.

Selenium feels old and outdated, it's always a hustle to install it/get it running and I have to use WebdriverIO with it in Node. I tried Puppeteer a few days ago, I just did `npm i puppeteer` and it worked as expected.

How would you describe the npm install process?

Just like any other module, but slower. There's a substantial bag of bits it needs to fetch (chromium), but that's cached.

I've also noticed that sometimes (in CI, less than 5% of the runs) the installation or run will fail deep in chromium. It's actually spawning a chrome process and tunneling remote commands to the child process to do work, so, I guess the flakiness is (almost) excusable?

Restarting the test always resolves the issue, fwiw.

Re: Prototype: Puppeteer for Firefox

#93
For anybody who wants to follow along, the Firefox work is tracked here: https://gitter.im/webhintio/Firefox

The experiment was a great start to see what is needed to support Puppeteer. The next step is coming up with a well-integrated architecture. Find me on the web to talk to me about your use cases and ideas for Puppeteer.

Re: Prototype: Puppeteer for Firefox

#94

Huh. I worked on exactly this idea as a Mozilla intern in 2017. I wrote a collection of Rust crates (mentioned in [0]) comprising auto-generated types for all Chrome DevTools Protocol messages [1], (de)serialization, and a server lib to handle both the initial HTTP handshake and subsequent command execution over WebSockets. I used that to build out an initial CDP server inside Firefox (and Servo) with support for a c…

Are you saying they didn't credit you for your work?

Re: Prototype: Puppeteer for Firefox

#95
post #81

In case you're wondering, and the linked page doesn't explain: > Puppeteer is a Node library which provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome or Chromium. https://developers.google.com/web/tools/puppeteer/

Thank you. This industry has a huge failure mode in touting tech used in projects/frameworks without linking out to at least the source so that someone can learn about them. Can't tell you how many things I've bailed on because it was a pile of obscure library references that weren't (to me) worth looking up.

To be fair, in this case the linked page is a subdirectory of the main Puppeteer project.

Re: Prototype: Puppeteer for Firefox

#96

Firefox has lost its lead because it's lost the developers. Chrome has invested massively in developer tools for chrome and it's shows.... I think chrome is the best software ever written. The developer tools are so powerful that it'd hard to even know the full breadth of what's in there. Firefox offers nothing to developers over chrome, which is sad.

Working with both browsers daily for PhotoStructure, I can tell you I miss the FF grid tool and changes panels on chrome dev tools. More features are coming: https://www.mozilla.org/en-US/firefox/developer/

Re: Prototype: Puppeteer for Firefox

#99
post #27
post #4

is there a benefit to using firefox with puppeteer compared to chromium and puppeteer? or is it just a matter of choice and being able to also use firefox for automated testing?

Deliverables are supposed to be tested on every major browser. I believe the goal is to use both.

This is the goal.

Disclosure: Chrome DevTools docs guy

Re: Prototype: Puppeteer for Firefox

#100
post #81

Earlier quoted context omitted.

Thank you. This industry has a huge failure mode in touting tech used in projects/frameworks without linking out to at least the source so that someone can learn about them. Can't tell you how many things I've bailed on because it was a pile of obscure library references that weren't (to me) worth looking up.

To be fair, in this case the linked page is a subdirectory of the main Puppeteer project.

This is also an experimental project. Who here thoroughly documents their experiments? Although to be fair we did announce it at I/O so that calls for more documentation.

Disclosure: Chrome DevTools docs guy

Post reply on HN