The Trouble with Page Objects

PageObjects have some common problems that many people see but not everyone can explain. Over time they can become harder and harder to maintain. In some cases, they become a tangled mess riddled with deep inheritance hierarchies. How can this happen?! PageObjects provide an easy-to-follow, simple structure that avoids early maintenance issues. But, they break some key OO design rules, making maintenance more difficult over time. This can result in flaky tests. PageObjects were introduced to help test-developers avoid mistaking flaky tests for problems with Selenium. It was a useful first step, so why did we stop there? In this session you’ll learn about the SOLID design principles that PageObjects disregard. You'll see why this leads to problems. You’ll see how and why PageObjects benefit from refactoring to SOLID design principles. Finally, you’ll meet the Screenplay Pattern; an alternative that can save you the effort. More details: https://confengine.com/selenium-conf-2016/proposal/2475 Conference: http://2016.seleniumconf.in
Length: 03:03
Views 35 Likes: 0
Recorded on 2016-06-24 at Selenium Conf India
Look for other videos at Selenium Conf India.
Tweet this video