Re-post: "Selenium PageObjects and PageFactory"
This article discusses the Selenium PageObjects and PageFactory design pattern
and a factory class from WebDriver support libraries. I believe this is a very
robust way to model your tests. The way this design pattern is formulated, it
becomes easier making changes to the flow, logic or the UI test