Upload a File

This is pre-built Action located under the @Custom Element. The functionality of this action in Avo Assure to upload a file on the object specified in the input by providing the file path from the local system, and save the result in dynamic variable.

Syntax: 

Input Value: <Object Type >;<Visible Text(Optional)>;<index>;<file path>;< file name><wait(in second)>;<abs (optional)>

Argument
Description

<ObjectType> (Required)

Specify the type of object (e.g., Button)

<VisibleText> (Optional)

Enter the visible text on the object

<Index> (Required)

Provide the index of the object inside the page

<FilePath> (Required)

Path to the folder containing the file to upload

<FileName> (Required)

Name of the file to be uploaded (e.g., Report_Q2.pdf)

<WaitTime(in seconds)> (Optional)

Wait time before action execution

<abs> (Optional)

If the abs is provided, the action is performed with absolute identification using the absolute X path

Output Value

Argument
Description

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

This dynamic variable stores the result of the verification as True or False

Example

Uploads a specified file to the selected input field in the application interface

The Upload a File action takes the value from the Input Value column (e.g., input;;0;C:\Documents\Reports;Report_Q2.pdf;3) and uploads the given file after the specified wait time. The result of the file upload operation is stored in the {Upload} variable, with the following possible values:

  • True – if the file is uploaded successfully.

  • False – if the file upload fails.

Last updated

Was this helpful?