DEV Community

Hey look, it's Playwright, like Puppeteer but with more browser (support)

Evan on February 17, 2020

I've written extensively about the many things you can do with Puppeteer. A deal breaker for some workflows, like automated testing + coverage, is...
Collapse
 
headlesstesting profile image
HeadlessTesting

Nice article! If anyone is looking to try this out in a cloud environment, we've been building a service where you can connect your Playwright scripts to browsers running in our cloud: headlesstesting.com

The advantage is that you can scale your scripts to run multiple sessions simultaneously, without running these browsers on your own infrastructure.

Collapse
 
fifn2 profile image
Finn Wright

Why isn't it enough to just test in Chrome? Are there major differences in how browsers execute code?

Collapse
 
evanhalley profile image
Evan

Great question. The differences matter depending on your particular website or web app.

An example, here is how well browsers support the lazy load attribute for images

caniuse.com/#feat=loading-lazy-attr

(IE and Chrome support, Firefox does not as of 2/17).

Collapse
 
ifarmgolems profile image
Patrik Jajcay

Great stuff! Looks a lot more intuitive than puppeteer. Wish I knew about this a little sooner.