# Debug in Chrome

When your test failed, the browser window will not close automatically. You can debug the test using all the native Chrome features, DOM navigator, network tab, etc. This is very useful when you need to [fix selectors because an "element was not found"](/preventing-failed-tests/selectors.md#tips-on-fixing-selectors).

To open Chrome Dev tools **just right click on your page and click "Inspect".**

![](/files/8tp1RspBZwPrirGW5vG5)

&#x20;


---

# Agent Instructions: 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.bugbug.io/debugging-tests/debug-in-chrome.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.
