Canonical: https://botbento.com/usecases/automated-playwright-test-repair-agent/
Format: Markdown representation of the public HTML page.

[Home](/) / [Use cases](/usecases/) / [Coding](/usecases/?category=coding)

Coding · Intermediate

# Automated Playwright Test Repair Agent

Diagnose broken browser automation scripts and draft pull requests with updated selectors

[Use with BotBento ](https://app.botbento.com/?ref=usecases&utm_source=botbento.com&utm_medium=usecases&utm_campaign=automated-playwright-test-repair-agent)Copy promptShare[Markdown](/text/usecases/automated-playwright-test-repair-agent/index.md)[العربية](/ar/usecases/automated-playwright-test-repair-agent/)

Opens BotBento. Paste the prompt into a bot; nothing is preconfigured.

- When something happensTest execution failure trigger
- ThenInspect DOM and update selectors
- ResultDraft repair PR for review

When browser end-to-end tests fail due to UI shifts or altered selectors, this bot inspects the DOM state of the failure, identifies broken locators, tests revised automation logic, and prepares a pull request with the corrective patches.

## Prompt to start with

BotBentoRecommended

```
When a browser automation script throws an uncaught error during test runs, inspect the page session and failure stack trace. Use the terminal to examine logs, verify altered DOM elements in the browser, and formulate updated selectors or navigation logic. Test the proposed changes locally. Once verified, prepare a pull request containing the script fix on GitHub, but always require explicit user approval before pushing commits or submitting the pull request.
```

Copy

## Tools it uses

BrowserGitHubTerminal

## Works with

BotBento

## Tags

- playwright
- testing
- browser
- ci
- debugging

## Source

[Show HN: Libretto PR agents – Automatically fix failing playwright scripts](https://news.ycombinator.com/item?id=48939710)
Hacker News · checked 2026-10-15

Summarized in our own words. Any results described there are the authors’ own, not measured by BotBento.

By BotBento Editorial · Added 2026-10-16 · Updated 2026-10-16 · [Suggest a correction](/contact/)

## Related use cases

-

Codingintermediate

## [Automated UI verification for local code changes](/usecases/automated-ui-verification-for-local-code-changes/)

Launch local servers and capture browser evidence for frontend changes

BrowserTerminalGitHub
-

Codingintermediate

## [Convert recorded browser sessions into automation code](/usecases/convert-recorded-browser-sessions-into-automation-code/)

Transform interactive web demonstration logs into reliable browser automation scripts.

BrowserTerminalGitHub
-

Codingintermediate

## [Automated codebase debugging and test verification](/usecases/automated-codebase-debugging-and-test-verification/)

Inspect repository errors, draft code patches, and verify fixes against your test suite.

TerminalBrowserGitHub
