News for hackers. Stuff that matters.
Re:Prototype: Puppeteer for Firefox by XCSme on Tuesday July 23, 2019 @08:21AM (#20506125)
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.
Re:Prototype: Puppeteer for Firefox by ppf on Tuesday July 23, 2019 @09:35AM (#20506592)
How would you describe the npm install process?
Re:Prototype: Puppeteer for Firefox by mceachen on Tuesday July 23, 2019 @12:04PM (#20507797)
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 by jamesgeck0 on Tuesday July 23, 2019 @01:48PM (#20508671)
You can install Puppeteer without downloading the bundled Chromium (PUPPETEER_SKIP_CHROMIUM_DOWNLOAD env variable), but you need to be careful to use it with a version of Chrome/Chromium that has a compatible dev tools api version.

I too have experienced flakiness in CI where Chrome doesn't always seem to start or quit within a reasonable amount of time. I get around this in production with timeouts that give any lingering Chrome processes a series of increasingly aggressive requests to quit, but my hosted CI environment doesn't like it when I send kill signals to random PIDs.

I'm hoping that this Firefox client will be somewhat more reliable in that regard.

Re:Prototype: Puppeteer for Firefox by ppf on Wednesday July 24, 2019 @03:51AM (#20513106)
I meant installing npm itself.
Re:Prototype: Puppeteer for Firefox by XCSme on Wednesday July 24, 2019 @03:40AM (#20513073)
Simple, 0 configuration, fast. With a new installation of Selenium I always have to download the Firefox/Chrome drivers, have to setup paths, debug startup erros, plus it crashes pretty often.
Re:Prototype: Puppeteer for Firefox by hans-claasen on Wednesday July 24, 2019 @10:18AM (#20515518)
This is about to change as WebdriverIO will support automation based on Puppeteer soon: https://github.com/webdriverio/webdriverio/pull/4210 .. with that you only need to install WebdriverIO via NPM and the browser you want to automate
Re:Prototype: Puppeteer for Firefox by ppf on Wednesday July 24, 2019 @03:51AM (#20513105)
No, I meant installing npm
Re:Prototype: Puppeteer for Firefox by XCSme on Wednesday July 24, 2019 @06:13PM (#20520482)
I already had npm installed. And I think npm comes within the Node.js installer.