asg017/observable-prerender

Maybe change puppeteer->playwright

asg017 opened this issue · 0 comments

Came across Playwright today, seems pretty cool. The API is very similar to puppeteer so it wont be too big of a change. Here's why I think paywright could be nice:

  1. Be able to define a chromium, firefox, or webkit browser
  2. Change geolocation, permissions of the browser
  3. Chose the type of device to emulate (iphones, android, etc.)
  4. There's some capability for video recording.

Reasons to keep puppeteer only:

  1. playwright is much larger. There is a playwright-core, but ppl would still have to download playwright and it downloads 3 browsers vs puppeteer's 1
  2. The video recording (for now) records the entire screen and it seems like there's not many options to control like a screenshot.
  3. Only having to worry about 1 browser instead of 3 would be less of a headache. But it's not like this library is a headache to maintain