Hello, this is my first posting to this website and I'm excited to get engaged!
I wanted to hear from other Selenium users what their thoughts are on building automation code using widget model instead of page object model. Over the past 5 years or so, our company have developed automated tests using Selenium RC, now Selenium WebDriver, and we have transitioned over to use widget model concept from the page object model concept. We really love Selenium and heavily depend on the API!
In terms of Page Object model, I am referring to creating UI classes which represents a unique page of the web application under test. On the other hand, the widget model is creating reusable UI classes which represents a commonly used widgets/controls throughout your application. This could be things such as navgiation bar, custom table, custom drop down, form fields, etc.
We have recently open sourced a project called "JTAF-ExtWebDriver" which practices this concept. We currently have HTML widget library included within the project. The goal is to add more widget libraries for specific UI libraries such as jQuery, Angular, GWT, etc.
Any feedback would be greatly appreciated! Thanks!