## Automated Playwright Test Repair Agent

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

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.

Approvals:

- Pushing commits requires explicit user approval.
- Submitting the pull request requires explicit user approval.

Source: BotBento use case https://botbento.com/usecases/automated-playwright-test-repair-agent/ (CC BY 4.0).
