r/softwaretesting • • Mar 27 '24

Selenium VS Playwright

Hi, I'm a manual tester looking to start the automation testing effort for my company's website from scratch. From doing my research on this sub, I noticed that Playwright with JS/TS is the most recommended combo to learn and get started with. However, one of the devs in my team recommended that I start with Selenium because it's more common and has more documentation and community support. I'm confused now. I'm not particularly keen on learning Java for Selenium and Python with Selenium also doesnt sound appealing because the frontend is coded in JS/TS so I figured Playwright would be perfect.

Can someone tell me about their experience working with Playwright-JS/TS. How is the documentation and community support if i were to run into issues? Also, I might be leaving the company in a couple of months so I want to hand over the automation in a way that it can be picked up easily by the new guy.

56 Upvotes

78 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Mar 27 '24

I don’t think I was advocating at all actually, just stating that if people have preference to use Cucumber then there are boilerplate repos they could use to get started.

2

u/2ERIX Mar 27 '24

Sorry for the assumption, but I am wary of starting any new Automator in a path that even mentions Cucumber as while the intention is good it’s not a great end state and I believe will actively impact their career.

Mocha is a boilerplate for various frameworks. Much more in use than cucumber and in line with development and testing practices.

WDIO with Mocha is a great solution. Cypress use it as well and if you use it with Playwright you can get some useful reuse patterns.

1

u/ThomasBronola May 23 '24

So just to make sure, mocha is better than cucumber for playwright?

Out of curiosity, where is cucumber best to use?

2

u/2ERIX May 23 '24

Mocha every day of the week. But Playwright has their own pattern you can use instead of Mocha. Same same but different. Mocha just allows familiarity of use case from dev to test.

Cucumber is best in salads and sandwiches. 🥗🥪