> For the complete documentation index, see [llms.txt](https://docs.walnutai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.walnutai.ai/core-features/intelligence-hub/generate-test-cases/smart-recording/debug-mode/web-debug-mode.md).

# Web (Debug Mode)

**When to Use Web Debug Mode:**\
Use this feature when you want to generate real-time test cases by  interacting with a live web application while WalnutAI records each action automatically.

* **Supported Platform:** Web Applications
* **Execution Type:** Manual browser interaction with automatic step recording

**Steps to Generate:**

* **Enter Application URL:** Click **Web** under **Generate Test Cases → Smart Recording → Debug Mode** and enter the web application URL.

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

* **Connect:** Click **Connect** to launch the browser session and establish a live connection. Recording starts automatically.

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

* These toolbar options help you control recording, capture elements, and add validations like visibility, values, and screenshots while interacting with the application.
* **Manual Interaction:** Perform actions directly in the launched browser (for example: login, create user, submit forms, validate dashboard). Walnut AI records each interaction automatically.
* **Automatic Recording:** Walnut AI captures structured test steps, screenshots for every step, user actions such as clicks and inputs, and page navigations.

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

* **Add Validations:** You can add validations such as verifying element visibility, page titles, or success and error messages.
* **Parameter Generation:** Input values such as usernames, passwords, form data, URLs, and expected values are automatically converted into reusable parameters.
* **Enhance Coverage:** You can add negative scenarios, improve validations, refine steps, or remove unnecessary steps during the session.&#x20;

{% hint style="info" %}
You can also switch to **Generator Mode** to add more validations or negative scenarios using AI prompts.
{% endhint %}

* **Finalize Session:** Click **Disconnect** and then **Done** to complete the recording session. If the session is not completed, the recorded steps will not be finalized.

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

* **Save:** Click **Save** to retain the generated test case. If not saved, the recorded test case will not be retained.

<figure><img src="/files/2UwawQ6279uuCzMJ2FXv" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Result:** Saved **Test Cases** will appear in the **Test Case Module** reflected accordingly.
{% endhint %}


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.walnutai.ai/core-features/intelligence-hub/generate-test-cases/smart-recording/debug-mode/web-debug-mode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
