Abstract: In automation of any UI using Selenium, Too many duplicated code is used. Duplicated code could be caused by duplicated functionality and this will result in duplicated usage of locators. If some locator will change, you have to walk through the whole test code to adjust locators where necessary. By using the page object model we can make non-brittle test code and reduce or eliminate duplicate test code. Beside of that it improves the readability and allows us to create interactive documentation. We can also create tests with less keystroke. An implementation of the page object model can be achieved by separating the abstraction of the test object and the test scripts.
Keywords: Page Object Model, Selenium, Automation Framework, Test NG.