Selenium Framework for Beginners 7 | What is Page Object Model (POM) | How to create POM in Selenium
YouTube Viewers YouTube Viewers
511K subscribers
213,982 views
0

 Published On Aug 2, 2018

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
   • Selenium Beginner Tutorial  

SELENIUM JAVA FRAMEWORK BEGINNERS
   • Selenium Java Framework for Beginners  

JAVA
   • Java  

JENKINS
   • Jenkins  

JMETER
   • JMeter Beginner  

GIT & GITHUB
   • Git and GitHub  

DOCKER
   • Docker  

ROBOT FRAMEWORK
   • Robot Framework Beginner Tutorial  

KATALON STUDIO
   • Katalon Studio  

WEB SERVICES (API)
   • API Web Services  

Like on FACEBOOK :
  / automationstepbystep  

Follow on TWITTER:
  / automationsbs  

Subscribe on YOUTUBE :
   / 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/

show more

Share/Embed