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/Wide_Researcher_3565 Mar 27 '24

Hi! I dont have experience with JS/TS but know Python a little bit. Do you think it would be ideal then for me to use Selenium with Python? or Playwright with Python? Honestly, my company hired me as the Senior QA and this role only demanded manual testing. However, right now I'm blocked for testing since the website is still being developed so I only test when a new feature is out. I think to use up my time well, they've asked me to start looking into automation.

I have plans of leaving this company in a few months and head towards more data related roles. Do you think I should look out for myself and learn Selenium with Python that would help me at the job+personal growth or think of the company and pick up JS/TS for playwright?

1

u/Tiburanetz Mar 29 '24

In case you are going to look for data related job, I'd recommend you to choose playwright with python because python will be more suitable for data related stuff automation.