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

9

u/Gaunts Mar 27 '24

Selenium for a job now, playwright for a job in three years.

1

u/Wide_Researcher_3565 Mar 27 '24

Since i'm comfortable with Python(even though Selenium+Java is more commonly used), should I go for that route?

2

u/MasterKindew Mar 27 '24

I can't advocate for what path to take, but I will say you can do test automation with Python. I'm currently in a role using python/selenium as the base.

1

u/Lucky_Mom1018 Mar 27 '24

Me too. I’m self taught selenium/Python and have had no trouble building a great framework.

1

u/Tiburanetz Mar 29 '24

I think selenium is more flexible than playwright for building great framework. But playwright has some killer features like requests interception.

1

u/NoCloudBase May 10 '24

too late for this post, started using Selenium back in mid 2020 + python for web automation for my job upon recently (3 months ago) I discovered Playwright,s witch and never looked back. Selenium was able to do most of my needs but its way harder to setup for quick testing. Playwright within ours of reading docs and playing with it I I had a test setup running for prototypes. Playwright works extremely well with single page java script websites as opposed to selenium which stills works fine but requires extensive knowledge and prep to do the same with playwright which may take you couple of hours to have something working.

1

u/Diligent_Librarian58 Nov 20 '24

A bit late, but since I don't see anybody mentioning it: Both Playwright and Selenium support Python. So Playwright Python would be exactly what you're looking for.