Apply Factory Pattern over Page Object to enrich the test design flow

The information described here requires a basic understanding of how Page Object Pattern is applied. It is recommended that you read this before moving forward with the content of this article. Factory pattern is useful when there is a large number of page object implementations. With great numbers comes great responsibility and this way the need … Continue reading Apply Factory Pattern over Page Object to enrich the test design flow

Selenium and singleton in Python – part two

Metaclass and Singleton Introduction As I promised, we are coming back with the second part of the tutorial related to singleton implementation in Python 3. Here we will cover two different approaches, much easier to understand and more Python-friendly. We will start with Metaclasses and in the last part, we will cover the singleton based on … Continue reading Selenium and singleton in Python – part two

From a messy script to page object pattern in Python

The purpose of this article is to help you understand how to organize a messy 'record and play' code into a maintainable one using the most popular design pattern in software testing 'page object pattern'. The transition from manual to automation testing is the logical next step for each software testers. But when you start your journey … Continue reading From a messy script to page object pattern in Python