Benchmark: Puppeteer vs. Selenium vs. Playwright vs. WebDriverIO
11–20 of 31 posts
Re: Benchmark: Puppeteer vs. Selenium vs. Playwright vs. WebDriverIO
#12 def test_homepage(live_server, page):
page.goto(live_server.url)
assert page.innerText('#splash-quote') == 'our splash-quote'
$ pytest -k test_homepage --browser chromium --browser firefox --verbose
tests/test_browser.py::test_homepage[chromium] PASSED [ 50%]
tests/test_browser.py::test_homepage[firefox] PASSED [100%]Re: Benchmark: Puppeteer vs. Selenium vs. Playwright vs. WebDriverIO
#13Re: Benchmark: Puppeteer vs. Selenium vs. Playwright vs. WebDriverIO
#14Re: Benchmark: Puppeteer vs. Selenium vs. Playwright vs. WebDriverIO
#15It may be faster but that depends on browser too right? Which browser version pinned to same? There are many other factors too.
Why playwright > Puppetter
1. Playwright supports cross browser properly. You don't usually see errors on firefox in playwright 2. Maintenance (Just watch recent commits, issues etc) 3. Less bugs on playwright
Re: Benchmark: Puppeteer vs. Selenium vs. Playwright vs. WebDriverIO
#16Re: Benchmark: Puppeteer vs. Selenium vs. Playwright vs. WebDriverIO
#17Take this benchmark as a grain of salt. Playwright > Puppeteer from technical point of view. Playwright is well maintained by some developer who started puppeteer and there are less bugs on playwright than on Puppeteer. It may be faster but that depends on browser too right? Which browser version pinned to same? There are many other factors too. Why playwright > Puppetter 1. Playwright supports cross browser properly…
Re: Benchmark: Puppeteer vs. Selenium vs. Playwright vs. WebDriverIO
#18Re: Benchmark: Puppeteer vs. Selenium vs. Playwright vs. WebDriverIO
#19There's obviously a place for browser testing. But I'm still not convinced most of the huge effort that goes into it couldn't have been better spent building stronger unit and integration tests elsewhere in the tech stack.
It is surprising, though, how much engineering is required to click a button.
Re: Benchmark: Puppeteer vs. Selenium vs. Playwright vs. WebDriverIO
#20Interesting.. I've chatted with Tim and learned a lot of people run Puppeteer on Lambda.. there is an easier way (spoiler - I work on the open source project OpenFaaS) - https://www.openfaas.com/blog/puppeteer-scraping/ Hope it's of some use to folks who may be struggling to compile lambda-chrome or with local testing. I used Selenium a lot in a past life, so this post is interesting to see, but the UX and maintenanc…
With that said, if someone does want to use Lambda, it's easier than outlined in the article. Use one of the layers listed at https://github.com/shelfio/chrome-aws-lambda-layer and then `require('chrome-aws-lambda')` works fine, making it easy to throw something together even in the AWS console's own editor.