Tell me more ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I have been hearing a lot about page object modelling? Why is it so important?

Can someone please outline me page object model?

I'm currently working as QE in webservices area

share|improve this question
You can find additional info in my answer to this post: sqa.stackexchange.com/questions/3798/… – Sam Woods Oct 25 '12 at 15:43
This gives a good insight on the topic: code.google.com/p/selenium/wiki/PageObjects. Also there are quite a few articles on the topic online, so is there anything specific you are looking for or just a general idea of people's view? – Suchit Parikh Oct 25 '12 at 16:42

1 Answer

Read this ( scroll down to the page objects section though the whole page us good ) and this for some background

Or from this page

Taking it back to basics, essentially there are three functions I see a page object pattern provides:

Ability to easily instantiate pages in a consistent manner

Ability to concisely describe elements on a page, keep it DRY by avoiding repetition of element identifiers (using the underlying driver’s API)

Ability to provide higher level methods that use the elements to perform user oriented functions.

and a tutorial here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.