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

22

u/ElaborateCantaloupe Mar 27 '24

For beginners I think playwright is the easiest to understand and get started quickly.

That said, you can use selenium with JavaScript or typescript with webdriver.io so you’re not stuck with either Java or Python.

3

u/Wide_Researcher_3565 Mar 27 '24

I'm slightly familiar with python over Javascript/Typescript which I'll have to pick up from scratch for selenium or playwright. Would you still recommend that route?

3

u/ElaborateCantaloupe Mar 27 '24

I recommend playwright with typescript. If you’re familiar with any scripting language you should be able to pick up playwright with typescript pretty easily. Or, at least MUCH easier than using Java.

Typescript will also help in general any time you’re testing a web application.

0

u/ManikMiner Mar 27 '24

You can even use it with C# 😁 id recommend Java though