I have used siteprism in the following manner
Each page has a page object file
Sections that are unique to a given page are only found in that page object file
Sections that are shared across multiple pages are placed in a base page and other pages extend the base page to inherit those common sections.
What I have not done but encountered
- There is also the approach where by sections are created and stored in a separate directory of files and then referenced within pages object files as needed.
I didn't want to have large number of small section files and would like to leverage inheritance more often than not but incorporate the section file approach above on an as needed basis.
Thoughts/Suggestions on best practices appreciated.
Thanks