# Save File

This is a pre-built Action located under the **@Browser Element**, instructs the Avo Assure to save a file opened in a new tab with the given name. It helps store the file in a specific folder during test execution and save the result in the dynamic variable.

### Syntax

**Input Value:** `<FilePath>;<FileName.extn>; <Wait (in Seconds)>(Optional)`&#x20;

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;FilePath><br>(Required)</td><td>Provide the location where the file needs to be saved.</td><td></td></tr><tr><td>&#x3C;FileName.extn><br>(Required)</td><td>Name of the file along with its extension (like .pdf, .txt).</td><td></td></tr><tr><td>&#x3C;Wait (in Seconds)><br>(Optional)</td><td>Provide time in seconds to wait before performing the action.</td><td></td></tr></tbody></table>

**Output Value:**&#x20;

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>&#x3C;Dynamic Variable>(Optional);&#x3C;Dynamic Variable>(Optional)</td><td>The dynamic variable holds the status as <strong>True</strong> or <strong>False</strong>.</td><td></td></tr></tbody></table>

{% hint style="warning" %}
***Note:***&#x20;

*This Action is applicable only for **web app types**.*

*If any of the files, either .txt or .pdf, or .xml opens in a new tab. Then the user can save that file locally.*

*There is no need to provide the Extn in the input. ICE will save the file with extn it has downloaded.*

*Wait (in seconds) if provided. The ICE will wait for the specified number of seconds for the file explorer to launch.*
{% endhint %}

**Example**

**Saves a file opened in the browser to the specified local path.**

The **Save File** action takes the value from the Input Value column **(e.g., C:\Users\Downloads\dictionary.pdf;2)** and saves the opened file to the defined location. The optional wait time **(in seconds)** allows for delay before the save operation. The result of the save operation is stored in the **{Savefile}** variable, with the following possible values:

* **True –** If the file is saved successfully.
* **False –** If saving fails or an error occurs.

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


---

# 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.avoautomation.com/avo-assure/actions/web/browser/save-file.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.
