A long-form article entitled: "Organizing Presentation Logic"| martinfowler.com
Factor the UI into a view and controller where the view handles simple mapping to the underlying model and the the controller handles input response and complex view logic.| martinfowler.com
A page object wraps an HTML page, or fragment, with an application-specific API, allowing you to manipulate page elements for testing without digging around in the HTML.| martinfowler.com