Does Live Browser Context Improve LLM-Assisted End-to-End Test Script Repair? An Empirical Study of Playwright MCP

Divi Galih Prasetyo Putri


Abstract
Automated End-to-End test scripts are inherently fragile. Modifications to the User Interface (UI) cause automation test script failures, imposing significant maintenance overhead. Automated test script repair using Large Language Model (LLM) has shown promise, but existing approaches operate without real-time access to the application under test. To the best of our knowledge, no prior controlled study has compared LLM-based test-script repair with and without MCP-mediated live browser access while keeping the remaining repair settings consistent. Through a controlled experiment on a web application, we inject 30 failure scenarios across two categories of UI modifications (locator changes and DOM structural changes) and evaluate two LLM models (GPT 5.0 Mini and Claude Haiku 4.5) with two conditions (with and without MCP access). Configurations with MCP achieve a correct patch rate of 65%, compared with 25% without MCP. The plausible patch rate reached 98% (vs. 87%), the failure rate dropped from 13.3% to 1.7%, and MTTR decreased by 31 seconds. These results suggest that providing agents with MCP-mediated live browser access primarily enhances repair correctness rather than merely increasing re-execution success rates.
Anthology ID:
2026.winlp-main.9
Volume:
Proceedings of the 10th Widening NLP Workshop
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Chen Zhang, Emily Allaway, Meryem M’hamdi, Peerat Limkonchotiwat, Richard He Bai, Santosh T.Y.S.S., Surendrabikram Thapa, Yinqiao Li
Venues:
WiNLP | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
87–95
Language:
URL:
https://aclanthology.org/2026.winlp-main.9/
DOI:
Bibkey:
Cite (ACL):
Divi Galih Prasetyo Putri. 2026. Does Live Browser Context Improve LLM-Assisted End-to-End Test Script Repair? An Empirical Study of Playwright MCP. In Proceedings of the 10th Widening NLP Workshop, pages 87–95, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Does Live Browser Context Improve LLM-Assisted End-to-End Test Script Repair? An Empirical Study of Playwright MCP (Putri, WiNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.winlp-main.9.pdf