r/softwaretesting • u/Wide_Researcher_3565 • 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.
2
u/Valuable-Ad9157 Mar 28 '24 edited Mar 28 '24
I am new to learning automated testing too. I chose Python with Selenium WebDriver. I did take a look at Playwright after I started to learn Selenium. After I studied the Playwright API docs for a bit, I decided to stay with Selenium because Playwright looked like it would be harder to learn to me. And Playwright itself tells you ways to avoid flakiness with their API, so it's not perfect either. Since I am getting used to the way Selenium works, I didn't see the need to change especially since I am still in the beginner stages of learning how to automate testing...so I need to learn something well first. And, from just looking at the Playwright API, I didn't see a big difference in how you script things compared to Selenium.
I actually like a lot about how Selenium works. I did need to take a Udemy class on it, where he started out using functional programming (which was great) and then went to POM (Page Object Model) which is just using Python OOP. It was a pain in the butt learning how to use Wait, but once you get it you are good to go.
Someone gave me the advice to just start with something and then go from there. This person thought starting with Selenium was just fine.
I have been in the IT related realm for 25 years. I always hear that this new piece of software is going to take over the world! So, dump that old dinosaur and jump onto the band wagon. Well, the truth is many companies will not make the change because the current system works just fine and everyone knows it. Unless Selenium takes a serious dump in quality, it will stay around for a long time still.