Skip to content

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:

  1. Navigation to itself
  2. Verification of elements, Assertions
  3. Verify integrity of the page
  4. Form Validations
  5. Reporting out the behavior as it is executed
  6. Perform actions that the user can do on the page