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)
<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:
<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
The dynamic variable holds the status as True or False.
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.
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?