top of page
Digital Shelf
It’s more of a personal collection—random things I come across, resources worth remembering, and thoughts I might want to come back to later. Just a place to keep track of it all.


POM in Cypress - Setup & Usage
This page shows how Page Object Model looks in real Cypress code . Where Page Objects Live Keep all page objects in one place: Important Notes Page objects use .js Test (spec) files use .cy.js Page objects should never contain it() or describe() This separation makes the project easier to understand and maintain. Creating a Page Object File Each page object is a JavaScript class . Basic rules to follow: Class name starts with a capital letter File name matches the class name
Jan 311 min read


Page Object Model
Page Object Model Overview The Page Object Model is a design pattern used in test automation to better organize code and improve reusability and maintainability. At its core, the idea is simple: instead of calling test steps directly in every test, you extract repetitive logic into methods or functions . Rather than repeating the same actions across multiple tests, those actions live in one place and are reused wherever needed. Why Page Object Model Helps Using Page Object M
Jan 183 min read


Cypress: Assertions
Assertions are an essential part of Cypress testing. They allow you to verify that elements exist, are in the correct state, and hold the expected data. Cypress provides powerful, built-in commands for making these assertions using .should()and .and(). What Is an Assertion? An assertion checks that your application behaves the way it should. It can verify visibility, content, length, values, CSS properties, classes, and more. Real-World Example: Asserting a Datepicker Input T
Jul 13, 20251 min read


Cypress: Popups & ToolTips
As a Quality Engineer, one common challenge in automated UI testing is handling popups — especially window.alert, window.confirm, and window.prompt. Cypress makes this easier by allowing you to intercept and stub these native browser dialogs. This guide walks you through practical methods to handle and assert browser dialogs using Cypress, with multiple approaches to validating window.confirm. Handling window.confirm in Cypress Cypress gives us full control over how to respon
Jul 13, 20251 min read


Cypress: Working with Tables
Working with dynamic tables in end-to-end testing is a common but often tricky task — especially when rows are editable, contain checkboxes, or are updated live. This guide shows how to use Cypress to interact with rows based on both content and index , as well as how to perform validations across multiple rows dynamically. Example HTML Table Cypress Test Example Cypress Table Interaction Techniques Finding Rows by Text A simple and reliable way to work with table rows is to
Jul 13, 20252 min read


Cypress: Dropdowns
Dropdowns in web applications can be implemented in different ways, and Cypress offers multiple strategies to work with them depending on the type of dropdown element used. Types of Dropdowns 1. Native HTML Dropdowns (<select> elements) These are standard HTML dropdowns using the <select> and <option> tags. How Cypress handles it: Use the .select() command to choose an option by its visible text or value. Cypress doesn't need to simulate opening the dropdown—it sets the value
Jul 8, 20252 min read
bottom of page