KeyWord Driven Test FrameWork Design Pattern

What is POM(Page Object Model)?

POM or Page object model is a design pattern which we follow in test automation to create a framework for any application under test.


How does it work

In this we used to create a page class for each and every screen then we would create variables and assign all the locator values to it for each web page in that created page class.

We will then create methods in the same page class for required operation on WebElements.


Pages in Framework

Advantage of POM

As it maintains WebElement locator values in pages so that it will be very easy to modify whenever we require.


Test Cases

Now, We need to create test classes under the test folder and call the created methods in page classes and execute test cases according to our requirement.

Let us see in the next chapter how to design framework structure.


Test cases in Framework