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

21

u/NightSkyNavigator Mar 27 '24

I teach courses in both frameworks. You should go with Playwright. It's an easier learning curve, and will provide value faster for both you and your company. Documentation is fine.

If you were experienced in Selenium, but not Playwright, the answer would be Selenium.

If you were experienced with both tools, a lot of other factors would come into play, and it's more difficult to give a clear answer.

This is assuming that you have experience with JS/TS. If not, Python might be a better option, though if you don't have any programming experience at all, it's going to be an uphill struggle no matter the choice, especially with regards to maintainability, extendability and scalability (if needed).

Why do your company want to do automation? What is the goal?

1

u/[deleted] Mar 27 '24

Do you have any repo where i can take a look on the playwright framework ?

3

u/NightSkyNavigator Mar 27 '24

Just have a look at the official documentation for Playwright, it's easy to follow.

1

u/[deleted] Mar 27 '24

Yup but just wanted to know the design patterns

1

u/NightSkyNavigator Mar 27 '24

Sorry, I don't work on any open source projects or others I can share.

1

u/[deleted] Mar 27 '24

Thanks 🙏