java - Is Page Object Design Pattern with Selenium creating classes of pages and invoking their constructors by the objects of them? -
I have created a Java Maven Test Project with the first Selenium. And I have to convert it to Page Object Design Pattern, as I could understand from official documents, we are making the classes of pages and then we invite them through the items made in the main category?
Is this true that I have understood? thank you in advanced.
You have understood it correctly. It is an idea that responsibility should be different. Creating PageAbet for each page gives you the ability to keep responsibility aside and if there is some change on the page that changes the mapping to the same place then it will be enough if you follow the steps of only one user and all the elements and The mapping pages will be organized in the object.
In addition, a base page will help in doing common tasks used in all tests.
I see it as taking advantage of OOP. A good bit of information about implementation can be found
Comments
Post a Comment