page objects
Ayan Dave edited this page Oct 28, 2012
·
1 revision
Use the page object pattern. For each page create a single piece of Java class that knows the structure and behavior of the page. For complex pages or popups there may be a page object java class for sections or pieces of page and they can all interact. It is recommended to let page objects handle the following:
- Navigation to itself
- Verification of elements, Assertions
- Verify integrity of the page
- Form Validations
- Reporting out the behavior as it is executed
- Perform actions that the user can do on the page