SEE PRICING & PACKAGES

Wednesday, April 28, 2027 - 11:30am to 12:30pm

From Gherkin to Living Page Objects: Scaffolding Playwright Tests Against the Real DOM with MCP

Page objects are the most tedious and brittle part of adopting BDD: teams write clean Gherkin scenarios, then spend days hand-coding the page objects and step definitions behind them—and when AI code assistants are asked to help, they hallucinate selectors for elements that don't exist. This talk presents bdd2pw, an open-source approach that closes the gap between specification and automation by grounding code generation in a live browser. Using the Microsoft Playwright MCP (Model Context Protocol) server, an AI agent reads your Gherkin scenarios, drives a real browser session, inspects the actual rendered DOM, and scaffolds Playwright page objects and step definitions with selectors verified against the application—not guessed from training data. Through a live demonstration, Vijay will walk through the architecture, the prompting and validation patterns that keep generated code maintainable, and the failure modes to watch for. Delegates will leave understanding how MCP connects AI agents to real testing tools, a repeatable workflow for scaffolding page objects from their existing feature files, and practical criteria for deciding where AI-generated test code belongs in their framework.

Vijay Prasad Javvadi
Verisk

Vijay Prasad Javvadi is a test automation engineer with 19 years of experience building quality engineering solutions for the banking and insurance industries, where reliability and regulatory compliance leave no room for flaky tests. He is the author of seven open-source NPM packages forming the TestForge toolchain for Playwright automation, including bdd2pw, which uses the Microsoft Playwright MCP to scaffold page objects and step definitions directly from Gherkin specifications grounded in the live DOM. His research on bdd2pw is published in SoftwareX (Elsevier), and his other tools include sel2pw for migrating Java/Selenium suites to Playwright and pw-self-heal for model-ranked self-healing locators. His work focuses on the practical intersection of BDD, Playwright, and AI-assisted development: making test automation faster to build and easier to maintain in highly regulated environments.