Object Repository in Selenium Framework

228 views
Skip to first unread message

Kanishk Jadhav

unread,
Dec 9, 2015, 7:51:34 AM12/9/15
to webdriver
I want to create object repository in Selenium framework.
I want to know, how to use Excel as an object repository?
In Page object model, how can I use it?
If not excel, which one is better?
My framework has lot of different applications, how can I fit POM for it?

Can anyone please throw some light on it?
Your help is very much appreciated.

Best Regards,
Kanishka

rakesh ravindran

unread,
Dec 10, 2015, 7:18:23 AM12/10/15
to webdriver

 u  can refer http://toolsqa.com/selenium-webdriver/page-object-model/ to  get  an idea about  POM.

venu madhav

unread,
Dec 10, 2015, 7:19:26 AM12/10/15
to webdriver

Object Repository
*********************************
This is just a key-value pair that you can have in any way you wish to ...some of the ways that I have used are
  1. Simple Java class ::: with final String variables given with values of the element properties
  2. Property file ::: where you can read them are key-value pair
  3. CSV, txt or Excel File: This is tricky as you need to read the files and assign them to hashmap or a two-dimensional array ... and then use them in all the tests

 If you want a simple approach then go with Property file or Java Class


The point 3 answers your next question...


POM

**************

Page Object Model Framework is designed to call the reusable methods based on the Field or Element and the Action that you are going to perform... This considers a Page as a unit and has class defined, with the methods for Each Element in that page..


This is commonly used when you have some changes or modifications at element properties quiet often...


Kindly Go through the Document attached to understand POM better... ALL the Best..

Understanding PageObject Pattern.docx

Kanishk Jadhav

unread,
Dec 10, 2015, 7:44:46 AM12/10/15
to webd...@googlegroups.com
Hey Venu,

Thanks a lot. Document shared by you is indeed useful.

Best Regards,
Kanishk

--
You received this message because you are subscribed to a topic in the Google Groups "webdriver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webdriver/hWXdYQIIGU0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.

venu madhav

unread,
Dec 10, 2015, 7:47:18 AM12/10/15
to webd...@googlegroups.com
Welcome Kanishk, If You can give complete details about your applications, then I can suggest the type of framework that you can use..

Regards, Venu
Reply all
Reply to author
Forward
0 new messages