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)

Argument
Description

<FilePath> (Required)

Provide the location where the file needs to be saved.

<FileName.extn> (Required)

Name of the file along with its extension (like .pdf, .txt).

<Wait (in Seconds)> (Optional)

Provide time in seconds to wait before performing the action.

Output Value:

Argument
Description

<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)

The dynamic variable holds the status as True or False.

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.

Last updated

Was this helpful?