Skip to main content
bash TV

Constants in Playwright Automation Framework | App Constants & Page Title Constants

Script and Execute

63 views20 Sept 2026

YouTube

Welcome back to the Enterprise Playwright BDD Framework Series! In this video, we are continuing our Playwright BDD framework development and learning how to organize and manage fixed application values using a dedicated **Constants** folder. Instead of hardcoding the same values in multiple places, we will create reusable constants and use them throughout our framework. In this video, we will cover: ✅ What are Constants? ✅ Why do we need a Constants folder in an automation framework? ✅ How to identify values that should be maintained as constants ✅ Creating the `src/constants` folder ✅ Creating `AppConstants.ts` ✅ Managing application messages such as "Successfully Saved" ✅ Creating `PageTitleConstants.ts` ✅ Using Page Title Constants in our Cucumber BDD tests ✅ Understanding what should NOT be stored as constants ✅ Difference between Constants, Configuration, and Test Data ✅ How Constants help make the framework more maintainable and reusable We are using **Playwright + TypeScript + Cucumber BDD** to build a reusable enterprise-style automation framework with OrangeHRM. In the next video, we will continue with another important framework concept — **Route/URL Constants** — and see how fixed application routes can also be maintained and reused in our framework. If you are learning Playwright automation from scratch or trying to build a real-world Playwright BDD framework, make sure to follow the series step by step. Don't forget to Like, Share, and Subscribe to **Script and Execute** for more Playwright, Automation Testing, BDD, and QA content. #Playwright #PlaywrightBDD #AutomationTesting #CucumberBDD #TypeScript #PlaywrightFramework #AutomationFramework #SoftwareTesting #QAAutomation #OrangeHRM

Join the discussion

Sign in to join the discussion

Sign in