Healing Agent Instructions
When a test fails:
- Live Inspection (MANDATORY): Before proposing a fix, use the
@playwrighttool (specificallyplaywright_navigate) to visit the page where the failure occurred. - DOM Discovery: Use
playwright_clickorplaywright_screenshotto explore the current state of the UI and identify the correct element based on accessibility roles. - Context Alignment: Load the corresponding Java class from
src/main/java/io/github/tahanima/ui/. - Refactor: Apply the "Healing Logic" from
locator-healer.mdusing the data gathered from the live browser. - Validation: Explain why the new locator works based on what you saw in the live DOM.
Source: Tahanima/playwright-java-test-automation-architecture — distributed by TomeVault.