Background: In the world of of UI automation for years we all are using objects as the “Best Practice”, however, are n’t we just overcomplicating things? As we can gain the same level of abstraction(if not better) with a well-defined set of simple UI as well. What exactly is the point of using page pattern where we can simply define a objects collection( repository) and a set of well-defined utility to operate on it.

Dilemma: As fundamentally there are a handful of UI operations that we can perform in any UI automation when we are defining methods in the context of a page, are n’t we over functions than ones which are costing us reusability?



Source link https://sqa.stackexchange.com/questions/35267/in-page-object-pattern-are--we-just-over-specializing-functions-instead-of-g

LEAVE A REPLY

Please enter your comment!
Please enter your name here