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/Valuable-Ad9157 May 09 '24

Actually, I have recently changed my mind. I am switching to Playwright as it resolves some pretty annoying issues with Selenium. Most importantly wait times are handled way better in Playwright.

For Playwright you are better off using vanilla JavaScript, then add in TypeScript. But, glad I learned Python as it is easier to learn as a first language then JavaScript. So, now learning JavaScript shouldn't be so confusing.

2

u/steveshakur May 09 '24

I think we are in the same boat. I am finishing a course on udemy on PW. I love how one is able to debug so easily. So far im sold. I still love Selenium but definitely PW is much more efficient

2

u/Valuable-Ad9157 May 09 '24

Which class on Udemy are you taking? I just started going through "Automated Web Testing with JavaScript and Playwright" by Rick Schubert

2

u/steveshakur May 09 '24

Playwright: Web automation testing From Zero to Hero by Artem Bondar. Hes using TS to teach