Posts

Showing posts with the label Page Object Model

Useful Design Patterns in Selenium Webdriver script

In this blog, we are going to discuss about different test design patterns and which one do we need to adhere while writing the Selenium webdriver test scripts. The most popular design patterns in Selenium are, 1) Singleton Pattern 2) Page object model First we will look into the question - What is Design Pattern?                  Design Pattern is the Programmer follows the good practices while writing program for the application or product to resolve/rectify the commonly occurring issues. In other words, It is a kind of strategy having structured program approach towards to show interactions and relationships between Classes and Objects. We have different kinds of Design patterns with its own Pros and Cons. The Design pattern types are, Creational Pattern - Practice of initiating the class object without using new operator for Object initiation. Structural Pattern - Practice of implementing inheritance in between Class, Object and interface to achieve new functionali