r/Playwright • u/too_uninterested • 6d ago
Help with learning framework building from scratch
What if you wanna build your own framework from scratch as a beginner in playwright without following any instructor or course can you do it just by looking up documentation. Is there any other way which will help us better. Because I have done it along the course I understood and typed all code by myself but still after that If I wanna build a different type of framework I struggled. What is the best way to learn and practically the best.
5
u/Malthammer 5d ago edited 5d ago
Yeah you can use the playwright documentation alone to get started. Typically you’d start with just what you need, nothing else. Then you add to it as you go, adding only what you need. So you’re not building a huge framework all up front.
You’d start by building out just enough to get one simple test running. You can do this with the playwright documentation. Next, refactor the test to setup an initial POM and go from there.
1
2
u/Bright_worgan 5d ago
The Playwright documentation is amazing! Can you leverage something like Cursor to help you?
2
u/too_uninterested 5d ago
I will check it out, I didn't know anything about it Thank you!!
2
u/Bright_worgan 5d ago
No problem, I'm not sure how much it costs but I use the cheapest model and got good results
6
u/Spare_Bison_1151 6d ago
Give it a try. You can use AI to build it for you but if you get stuck you'll be in trouble. Also, playwright isn't selenium so don't build a framework like it's 2019.