Please post your Web Driver questions in official Web Driver forum

Saturday, January 1, 2011

Selenium Page Objects

Have been reading about page objects in selenium of late and came across a couple of pointers which I wanted to share here -

1. If user action causes ctrl to appear on a different page then that corresponding page object should be returned else same page object should be returned.

2. Test code (Verification/Assertion) should be included in test and should not be part of page Objects them selves

3. Page object need not represent entire page, it may represent part of page which may appear on site multiple times or multiple times on same page.

4. Page Object offers the services represented by that page.


of late contributed an article on Page Object on Selenium Head Quarter. It could be found here.
Fork me on GitHub