Hacker News new | ask | show | jobs
by imp0cat 827 days ago
If you ever find that you need to automate some browsing and Selenium comes to your mind, banish that thought! :)

Do yourself a favour, use Playwright instead.

https://playwright.dev/

It's a headless browser that's both faster and less flaky than Selenium.

2 comments

I use playwright to run an automated test every time I deploy to staging.

I don't think it's caught any real bugs yet because I haven't actually broken anything but the playwright script keeps running reliably it includes a login and fills out a big long complicated form. Works great. Very quick. Selenium was slow and unreliable.

I hate Microsoft with a passion but Playwright is a gem.