STAREAST 2027 - Test Automation

Wednesday, April 28

W5

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

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

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...