Page Object Model — An introduction

Source: http://blogs.rediff.com
  • It contributes at decreasing the degree of code duplication.
  • Facilitates a better maintenance of test data, locators and test instructions.
  • Enables better change management in code.
  • Implementation of the test data, objects and methods are separated from each other, increasing the readability of the code.
  • Test scripts classes are developed and maintained separately than the page classes, and the page elements can be accessed from different test scripts.
  • The WebDriver and all the objects are created once, reducing the consumption of computer memory.
  • Access Wikipedia website.
  • Login using my credentials.
  • Search for Document Object Model.
Project Structure in Eclipse IDE

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store