# Drop File On the object

This is a pre-built Action located under the captured element. The functionality of this action in Avo Assure is to drop a file to the specified captured element using the file path provided in the input value. The result is stored in the given dynamic variable for further use during test execution.

## **Syntax**

**Input Value**: `<FilePath>;<FileName>`

| Argument                         | Description                                                                      |
| -------------------------------- | -------------------------------------------------------------------------------- |
| <p>\<FilePath><br>(Required)</p> | Provide the file path or file location you want to upload from the local system. |
| <p>\<FileName><br>(Required)</p> | Provide the file name which you want to upload.                                  |

**Output Value**: `<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)`

| Argument                                                    | Description                                                       |
| ----------------------------------------------------------- | ----------------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | Both dynamic variable stores the status as **True** or **False**. |

### **Example: Dropping a File on a Captured Object**

In this example,we are explaining how to drop a file from a specified local path onto a captured object within the application.

* **Action**: Drop File On the Object
* **Input Value**: C:\sam;Datatable.jpg
  * The first argument (**C:\sam**) specifies the local file path.
  * The second argument (**Datatable.jpg**) specifies the file name to be dropped on the target object.
* **Output Value**: {Status}
  * The result of the file drop operation is stored in the **{Status}** dynamic variable, with the following possible values:
    * **True**: If the file is dropped successfully on the specified object.
    * **False**: If the file is not dropped successfully on the specified object.
* **Logical Explanation**: The **Drop File On the Object** action reads the details from the **Input Value** column (**C:\sam;Datatable.jpg**). It retrieves the file from the specified local path and attempts to drop it onto the captured object within the application. The outcome of this operation (**True**) is stored in the {**Status**} dynamic variable.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F9Rdp9ceUaCLUi4rIsuVP%2Funknown.png?alt=media&#x26;token=f8687ad1-854b-4d0c-9ce4-6c24efc77993" alt=""><figcaption></figcaption></figure>
