It's time to leave Selenium behind

As much as I love Selenium, I think it is becoming more and more obsolete every year.


Selenium is a great piece of software, that helped so many Q.A engineers in creating automation scripts, allowing them to save so much time by automating the mundane tests, in multiple environments and languages! However, I believe there is a better automation framework that is incredibly underrated in the market today. And that framework is......

Playwright:

Developed by Microsoft, Playwright was built from the ground up to address the exact pain points that have frustrated QA engineers for years.

If you ask any automation engineer what they hate most about Selenium, the answer is almost always flaky tests caused by timing issues. Playwright introduces native actionability checks. Before performing any action (like a click or a type), Playwright automatically ensures that the element is visible, enabled, stable, and attached to the DOM. If it isn't, it waits automatically. This single feature eliminates up to 90% of superficial test failures.

In Selenium, running tests in parallel usually means launching multiple, heavy browser instances, which consumes a massive amount of CPU and RAM.

Playwright introduces the concept of a Browser Context. A single browser instance can spin up thousands of isolated contexts.

Honestly, at this point only thing Selenium got going for it, is the sheer amount of professionals in the work force who use it. If you would like to look at the Playwright Based Automation Framework I have created you can do so my clicking this link. Or by going into My Portfolio if you are paranoid. (And maybe you should be <_<)

— Elnur

#QA #AQA
← Back to all posts