Save File
The Save File action in the Avo Assure is found under the @Generic Element is used to save a file which is opened in the new browser tab to a specified location on the system and stores the result in an dynamic variable.
Syntax
Input Value: <FilePath>;<FileName.extn>;<URL>(Optional)
<filepath>
(Required)
Specify the folder location where the user wants to save their file.
<filename.extn> (Required)
Define the file format for saving the specified file Supported file format: (extn: Extension) .pdf, .txt, .xml, etc
<URL> (Optional)
The URL from which the file should be downloaded.
Note:
This action is applied only for web app type.
Supported file Formats: .xml, .txt, .pdf
Before using the Save File step, the user needs to add the Send Function Keys step to save a file opened in a new tab (eg., Ctrl+Shift+S for Internet Explorer, Ctrl + S for Chrome and Edge). The user should choose the correct keys for their browser.
Output Value:
<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
This variable stores the status as true or false
Example
Save a file from the browser or URL to a specified location The Save File action saves a file to the specified path with the given filename (e.g., C:\sam;demo.txt;https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf). Before using this step, the user must add the appropriate Send Function Keys action in step to open the browser's save dialog. The Save file action is completed based on the provided parameters, and the action status is stored in the {Status} variable with the following possible values:
True – if the file is saved successfully
False –if the file is not saved successfully.

Last updated
Was this helpful?