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

2

u/CertainDeath777 Mar 27 '24

Your Dev is right, but also so wrong.

There is more documentation for Selenium. But its all over the place in regards of quality and actuality, so you have to find your answers in between truckloads of literal trash.

Playwright documentation is sufficent and its so much easier to set up, as almost everything you need comes in a package with playwright github and vscode. you enter 3 console commands and start writing test cases and start to build a testing framework from the first tests you write.

with selenium after a week you may have decided whats the best test runner for you^^ or you experimented with selenium ide, to find out, theres no way around the actual coding.

i wouldnt even waste a thought about starting with selenium, when you can decide. so if there are no other reasons for selenium, you should just forget about it.

so take yourself an online PW course and start working. you will have a running framework and your first test on day 1 with that method. good luck trying with selenium^^