> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/actions/web/browser/save-file.md).

# 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)`

<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:**

<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:***

*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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FSHDKvcrwlbRat1M8Vz8a%2Fimage.png?alt=media&amp;token=64bbc7ea-36f2-4a22-a8e1-09e8152ecab8" alt=""><figcaption></figcaption></figure>


---

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