Selenium Framework for Beginners 8 | How to implement POM in Selenium Java

preview_player
Показать описание
Today we will learn - How to implement Page Object Model
1. 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 : Add action methods

Step 4 : Create class for test case

Step 5 : Create object for page class

Step 6 : Refer action methods

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 JAVA FRAMEWORK BEGINNERS

JAVA

JENKINS

JMETER

GIT & GITHUB

DOCKER

ROBOT FRAMEWORK

KATALON STUDIO

WEB SERVICES (API)

Like on FACEBOOK :

Follow on TWITTER:

Subscribe on YOUTUBE :

________ ONLINE COURSES TO LEARN ________

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
Рекомендации по теме
Комментарии
Автор

Thank you so much for making these videos. I learnt a great deal from your playlist on Selenium!

shehryarasif
Автор

Thank you very much for the video, In just 30 minutes explained this topic very smoothly and easily.

atuljangra
Автор

Hi Raghav, I never understood POM until now. Thank you so much for so easy tutorial.

Aj
Автор

Loved your explanation method raghav sir . Thanks for helping us out.

anandyashwanth
Автор

Thanks for this. I find your videos very helpful and easy to understand.

niraj
Автор

thanks a lot .. following from tunisia 🇹🇳 🇹🇳

BK_KARIM
Автор

You are truly awesome the way you explained topic is splendid. Could you please make one selenium project using Intellij.

PowerUp_
Автор

Your explanations methods are no words man

jyotsanarajput
Автор

Very helpful videos, thank you! It might help a few people if you were to add comments as you went through these.

seqthomas
Автор


Shout out to Raghav Pal!!! Great explanation!
@Automation Step by Step - Raghav Pal

myWayIn
Автор

Hi Raghav, will it be possible for you to create a tutorial for POM with TestNG ? Or is there an existing one for the same ? Regards

Bulleteerism
Автор

Hi Ragav, I could not find in your videos about how to Assert errors if displayed on the webpage, let say when I log in with invalid credentionals, if you already have this video please share the link.

ZafarDidit
Автор

Ur explanation is good, but it could be way better if u have taken two pages and perform actions on both the pages, it could clear most of the doubts

sairamaraju
Автор

Do you have a video showing how to use this with TestNG annotations? I'm having issues with the objects doing their job when the code is run as TestNG but when I run as a class it works...any tips please?

greedyboi
Автор

This is a great tutorial and one that i go back to and use as a guide to creating most of my scripts! Do you have any tutorials that show more complex methods than the basic click and senkeys?

eamonharvey
Автор

Hi Ragav,


As you told I have used name locator and executed . I am getting below error.


Exception in thread "main" element not interactable


I did not get any solution to this issue .

Please guide

kranthikoura
Автор

Your videos are the best materials I could search in YouTube so thanks a lot but why don't you use camel case in your methods and variables naming? There are java code convention rules for naming. It is really annoying to work with people in real life projects that name their methods and variables like they want.

volodymyrdrobko
Автор

while executing the script chrome browser is showing "Complete your Privacy Checkup" popup window which has "No, thanks" and "Complete" buttons. As per handing alerts should I handle the popup or any other way to resolve this issue?

sukanyavangari
Автор

Hi Raghav, thank you very much for the videos, it's very very helpful, I am recently facing reCAPTCHA issues with chrome, please how do I solve this issue?

anthonydarkwah
Автор

Hi Raghav,

If values are available in a table in a webpage and we need to select row values dynamically based on input value and do actions(we need to iterate rows to find the element in a table). How to implement this in POM.
Thanks,
Kumar.

testview