Today we will learn - What is Page Object Model
1. What is POM - Page Object Model
2. How to implement POM
What is POM
Design Principle
Create separate Object Repository to store object locators
For each web page there should be a separate page class
The page class will have all object locators and preferably action methods for the corresponding page
Step 1 : Create a class for each web page
Step 2 : Add object locators
Step 3 : Create class for test
Step 4 : Refer objects from page classes
Step 5 :Run and validate
Benefits of POM
Test Objects and Functions are separated for easy maintenance and keeping the code clean
Objects are kept separated from test scripts and can be used multiple times in multiple tests
Every unique object locator is created only once
Easy Maintenance and Less Rework
#SeleniumJavaFramework #SeleniumTutorials #SeleniumTraining #SeleniumFramework #SeleniumJavaTutorial #SeleniumBeginnerTraining
PLAYLISTS
SELENIUM BEGINNERS
https://www.youtube.com/playlist?list=PLhW3qG5bs-L_s9HdC5zNshE5Ti8jABwlU
SELENIUM JAVA FRAMEWORK BEGINNERS
https://www.youtube.com/playlist?list=PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa
JAVA
https://www.youtube.com/playlist?list=PLhW3qG5bs-L_qj1L5hnHvJYeFpQ_g4UuU
JENKINS
https://www.youtube.com/playlist?list=PLhW3qG5bs-L_ZCOA4zNPSoGbnVQ-rp_dG
JMETER
https://www.youtube.com/playlist?list=PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c
GIT & GITHUB
https://www.youtube.com/playlist?list=PLhW3qG5bs-L8OlICbNX9u4MZ3rAt5c5GG
DOCKER
https://www.youtube.com/playlist?list=PLhW3qG5bs-L99pQsZ74f-LC-tOEsBp2rK
ROBOT FRAMEWORK
https://www.youtube.com/playlist?list=PLhW3qG5bs-L9l2I8K8dEhw6HXy-Z-33w3
KATALON STUDIO
https://www.youtube.com/playlist?list=PLhW3qG5bs-L_D4ZePNNjvmIULuu6mBHbu
WEB SERVICES (API)
https://www.youtube.com/playlist?list=PLhW3qG5bs-L9E2KV6vVdB-YTk-sRxmRAB
Like on FACEBOOK :
https://www.facebook.com/automationstepbystep
Follow on TWITTER:
https://twitter.com/automationsbs
Subscribe on YOUTUBE :
http://youtube.com/automationstepbystep
Like, Subscribe & Share
You can support my mission for education by sharing this knowledge and helping as many people as you can
Never Stop Learning
Raghav
https://automationstepbystep.com/