Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • About Us
  • 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

June 25, 2018 – Make Selenium Easy Uncategorized
image – Make Selenium Easy Uncategorized
Postman Tutorial Part 45 – Data Driven Testing in Postman Using JSON File Uncategorized
Amod Mahajan – Page 2 – Make Selenium Easy Uncategorized
ElementClickInterceptedException – Element click intercepted – not clickable at point – Other element would receive the click Uncategorized
TestNG Tutorials 41: Skipping a Test Conditionally in TestNG | Make Selenium Easy Uncategorized

Recent Posts

  • How to Set Up Selenium WebDriver with Python Step by Step
  • How to Set Up Selenium WebDriver with Java from Scratch
  • What Is Selenium and Why It Is the Most Popular Test Automation Framework
  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing

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