r/QualityAssurance • u/gokubangschichi • 9d ago
anyone else make the switch from Selenium to Playwright recently or still sticking to the old stack?
struggling moving away from selenium tried rahul shetty academy playwright course and async stuff is way easier now. anyone else switched fully?
7
Upvotes
2
u/Serious-Brilliant-36 9d ago
We used the roboplay framework. Its easy to maintain less complexity
1
u/First_Hovercraft_600 3d ago
I switched fully, and the thing that helped most was not translating the old scripts line by line.
I kept the existing test cases as the source of truth and rewrote the Playwright tests against those cases, starting with the stable, high-value journeys. I used the same case IDs in the test titles so I could see what had been ported and what was still on the old stack. The old waits, sleeps, and "click this xpath, then wait" patterns are usually what make the move feel hard. Playwright's auto-waiting and locators like getByRole or getByLabel replace a lot of that, which is why the async style starts to feel easier once you stop bringing the old patterns across.
I'd run both suites side by side for a bit, and only retire an old test when the Playwright version covers the same case and you've seen it pass on a real run. That way the cases stay in sync and you don't leave a gap mid-migration.
If a flow is still changing every sprint, I'd leave it until later. Porting a moving target is where people get stuck and go back to the old stack.
1
u/WeirdImpression7524 9d ago
Goku bangs chichi what's your skillset? And are u using Ai agents for software testing?