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/
Prototype: Puppeteer for Firefox
81–90 of 133 posts
Re: Prototype: Puppeteer for Firefox
#82Earlier quoted context omitted.
Much better access to low-level information. You can hook (and mock) requests, see what POST data was sent and basically do lots of magic. Also, my experience with Selenium under Python is that doing anything bigger quickly turns into one giant timing hack.
Does puppeteer work with Safari and MS browsers or is it another Chrome only tool (and now Firefox)?
Re: Prototype: Puppeteer for Firefox
#83Earlier quoted context omitted.
Selenium / WebDriver has a HTTP API so you can have clients in any language, not just in Java
It would be awesome to have Puppeteer support Python... then I'd drop Selenium from my toolbox.
Re: Prototype: Puppeteer for Firefox
#84For automated testing, why Puppeteer instead of Selenium?
Re: Prototype: Puppeteer for Firefox
#85Earlier quoted context omitted.
I have never heard of TestCafe, but I've used Puppeteer for a variety of projects with Chrome. My latest one was using it to convert HTML files into PDFs en masse.
Is there an advantage to that approach over the more direct wkhtmltopdf?
Re: Prototype: Puppeteer for Firefox
#86Re: Prototype: Puppeteer for Firefox
#87Re: Prototype: Puppeteer for Firefox
#88For automated testing, why Puppeteer instead of Selenium?
Just download both and try doing the same test suite. See which one hurts the least. I'm 99% sure Puppeteer will feel like a breath of fresh air to you. CasperJS was OK, even better with Nightwatch but Puppeteer is quicker, more stable and actively developed.
Re: Prototype: Puppeteer for Firefox
#89In 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.
Re: Prototype: Puppeteer for Firefox
#90At the end of the internship I handed over everything I'd built by that point, with the idea that they (Mozilla) would turn it into a finished project. But I never saw any activity on that front after I left, so I assumed the idea'd been scrapped. Feels very weird seeing this pop up out of the blue on HN today.
[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1523104#c1
[1] Complete with documentation comment generation; I found the result of running rustdoc over that crate super useful as an alternative to the official CDP docs site: https://www.spinda.net/files/mozilla/rust-cdp/doc/cdp/index....