I’m in the middle of creating page objects in java for automated UI testing. I’m trying to follow the page object pattern and I’m wondering how a common part of the website falls into the paradigm? For instance the AUT has many different pages for running reports, the left pane for selecting a report, date ranges, filtering, etc is common for all pages. So should I create a different page object for this common area?
Share
Yes…The main aim of PageObjects are to represent repetitive parts of application, so through out your tests suite information of such repetitive part remains in single PageObject.
Reference –
http://code.google.com/p/selenium/wiki/PageObjects