Page Object Model use of statics instead of instantiated objects


I noticed in your page page object model example you used static methods for the page objects instead of instantiated objects. Why did you decide to go with statics?  Most of the examples Ive seen dont use statics.

See this for example:


jasonw Train Asked on July 21, 2016 in Selenium WebDriver.
Add Comment
1 Answer(s)

That was a design choice in our framework. You can choose any method of creating page objects. We wanted to showcase the page design which looks similar to QTP style of coding



Virender Singh Professor Answered on July 25, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.