Page Object pattern design questions

  • 0 Replies
Page Object pattern design questions
« on: March 09, 2016, 13:21:20 pm »
I am developing an API wrapper with selenium for a website to allow testers to build automated tests in the future.
I came across the Page Object pattern and i had some questions related to the design aspect of it.

1. Do page objects hold an instance of WebDriver as a field ?
2. Do page objects hold references to WebElements on said page ?
3. Is it common to hold the URL to the page as a field ? and what if some pages require parameters to be passed?
4. What other fields do your pages hold ?
5. How do you initialize page objects ? Is the PageFactory class provided by WebDriver commonly used ?


Sitemap 1 2 3 4 5 6 7 8