How to approach for automating an End 2 End scenario with playwright especially when you are not good with selectors.
My attempt to a problem posted by LetCode with Koushik channel on Youtube dated 22nd October.
Problem statement -
- Automate scenario mentioned in this video, Link <<HERE>>
Solution approach -
- Generate code using Playwright Codegen
-
Go through the generated code and start refactoring
- Tools that I used to refine selectors -
- Output - Refined code
- Introduce page objects for easy maintenance
- project structure
- all page objects & final feature file
- Download complete code from - Github link 🔗
- Install NodeJS and Git from below links befor proceeding with below commands-
- Install NodeJS and Git from below links befor proceeding with below commands-
- Step by Step Guide
Thanks for writeup on the approach, and github code link :)
ReplyDeleteThanks 😀
DeleteInsightful
ReplyDelete🔆
Deletesimilar to my attempt, some other people have made an attempt to this challenge with different languages and framework, below are the links to their GitHub repos -
ReplyDeleteWinner's for this challenge Ahamed and Abhinav - https://www.youtube.com/watch?v=I2AcfZ88rJ4&ab_channel=LetCodewithKoushik
Github code repo link:
Balaji Harish - https://github.com/BalajiHarish/Flipkart
Ahamed - https://github.com/Ahameds89/flipTask
Saravanan Seenivasan - https://github.com/sseenivasan89/FlipkartFlightSearch
Aravind Ram - https://github.com/arvindram95/FlipkartFlightBooking