Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Advanced Concept of Selenium – Design Patterns in Selenium WebDriver – There is Not Only Page Object Model Design Pattern

Posted on 02/19/2025 By admin

Hello Folks,

When we talk about design pattern in Selenium WebDriver, we generally discuss about Page Object Model (POM) and Behavioural Driven Development (BDD). But there are many more.

Before we go and see other design patterns in Selenium, I would like to explain “What is actually mean by Design Pattern?”.

Design Pattern:

A design pattern is a reusable solution for commonly occurring problems. It is a pattern or template that can be used to solve common problems. Design patterns are best practices which are used by software engineers to develop an application. Design patterns speed up development of application, tests and increases quality.

When we talk about design pattern in context of Automated tests, it actually represents how we design our automated tests. Like in Page Object Model, we separate test logics and supporting objects (Web elements generally). In BDD, we create methods for each step and include all desired actions. Of course we mix up design patterns as well. You should note here that design pattern does not mean how you manage your locators only. It talks about how well you manage your tests.

As per Selenium Wiki page, there are more design patterns in Selenium:

  • DomainDrivenDesign: Express your tests in the language of the end-user of the app.
  • PageObjects: A simple abstraction of the UI of your web app.
  • LoadableComponent: Modeling PageObjects as components.
  • BotStyleTests: Using a command-based approach to automating tests, rather than the object-based approach that PageObjects encourage
  • AcceptanceTests: Use coarse-grained UI tests to help structure development work.
  • RegressionTests: Collect the actions of multiple AcceptanceTests into one place for ease of maintenance.

I will post more on different design patterns in upcoming posts.

If you have any doubt, feel free to comment below. If you like my posts, please like, comment, share and subscribe. #ThanksForReading

#HappySelenium

Uncategorized

Post navigation

Previous Post: TestNG Tutorials 15: Inheritance In TestNG Classes
Next Post: Selenium Interview Question 3 – Difference Between get() and navigate() Methods of Selenium WebDriver

Related Posts

Postman Tutorial Part 50 – How to Retrieve Request Body in Postman Uncategorized
API Testing Tutorial Part 12 – Tools For Manual & Automation API Testing | Make Selenium Easy Uncategorized
ReScrollTo500 – Make Selenium Easy Uncategorized
TestNG Tutorials 28: Grouping Test Methods In TestNG Uncategorized
How To Use Singleton Class to Manage Instance Variables in Automation Framework – Java Uncategorized
Postman Tutorial Part 54 – Testing SOAP API(WSDL) Using Postman Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark