Hacker News new | past | comments | ask | show | jobs | submit login

Funny this popped up...I've been looking at replacing our slow and flaky Selenium test suite recently.

From what I can tell here are the benefits:

* With Playwright you don't need to put manual waits in your program. It's async.

* You also don't need to keep updating the Selenium.Webdriver to stay in sync with your browser version. This is a 15-20 minute time sink each time it happens.

* Can run in headless mode which will run the test suite much faster than selenium.

* Also appears to have better command line options to be run from a CI/CD environment




selenium also supports headless mode though, or is playwright's one different?


Selenium supports things like waiting till an element is clickable?

The webdriver issue is definitely annoying though. Not sure if there's a better way, but we're using a binary regex on the electron app in question to find a matching version and download it on the fly as part of test setup.


> With Playwright you don't need to put manual waits in your program. It's async.

That is just choosing between a blocking method or... a blocking method which suspends and resumes a thread.

> headless mode

That is really up to the browser driver to implement that, and you can do that perfectly fine in Selenium.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: