> For the complete documentation index, see [llms.txt](https://docs.dogq.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dogq.io/documentation/ai-powered-tools/ai-healer.md).

# AI Healer

Test healer is a powerful tool that can help you quickly assess and eliminate mistakes in your tests. When a test run fails, Healer analyzes Scenario and target web page, and tries to understand why the run failed and how to make it pass.

Consider the following basic example. Here we try to click on 'Get Started' button and verify that we've been redirected accordingly. The only issue is, there's been a minor typo - the letter 'd' in the selector is doubled.

<figure><img src="/files/vqSa2klSyKaUPBY1oAfe" alt=""><figcaption></figcaption></figure>

As expected, the test fails and when we go to the test run report for details, here's what we see:

<figure><img src="/files/7n96zW3uNFqWTiPtmpk8" alt=""><figcaption></figcaption></figure>

Not only does it correctly recognize that there are no matches for the mistyped selector and what the right one is, DogQ's Healer also proposes a fix that you can use if you see fit. Clicking on <img src="/files/mq1nhms7h1MzLvUBjMPQ" alt="" data-size="line"> will update the input of the failed step and navigate you back to your Scenario.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dogq.io/documentation/ai-powered-tools/ai-healer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
