Loading video player...
In this Session What is Page Object Model (POM) How to implement POM in our tests Step by Step DEMO In this hands-on session, we convert a basic login test into a reusable POM structure, move locators and actions into a page class, and create clean, readable tests using TypeScript best practices. 00:00 Introduction 00:30 What is Page Object Model (POM) 04:49 Step 1 - Create folders tests and pages 05:22 Step 2 - Under pages folder create a file LoginPage.ts and add code for doing actions on objects 17:40 Step 3 - Under tests folder create file login_test.spec.ts Import login_page class and write test code 25:00 Step 4 - Save and run npx playwright test tests/login_test.spec.ts 28:13 QUIZ - https://forms.gle/2stZ2P7G3P7ir8sw5 GitHub Project - https://github.com/Raghav-Pal/PlaywrightTypeScript_Demo - ▬▬▬▬▬▬▬ Share with all who may need this If my work has helped you, consider helping any animal near you, in any way you can Never Stop Learning Raghav Pal #Playwright #TypeScript #POM #PageObjectModel ▬▬▬▬ USEFUL LINKS ▬▬▬▬ ✅ ALL TUTORIALS - https://AutomationStepByStep.com/ --- 🙌 Connect with Raghav: * Ask Raghav: https://bit.ly/2CoJGWf * GitHub: https://github.com/Raghav-Pal * Udemy: https://www.udemy.com/user/raghav-pal-3/ Shorts Eng - https://bit.ly/3H9bifV Shorts Hindi - https://bit.ly/3XY7XqN ➡️ Subscribe for more videos: https://www.youtube.com/@RaghavPal —