# Send Function Keys

This is a pre-built Action located under the **@Generic Element**. The functionality of this action in Avo Assure is to perform the keyboard based actions specified in the input value. The result is stored in the given dynamic variable for further use during test execution.  keyboard-based actions

## Syntax

**Input Value**: `<function key>;<number>(Optional)`&#x20;

| Argument                                | Description                                                                                                                                                                    |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>\<function key></p><p>(Required)</p> | Provide the function key you want applied on the element.                                                                                                                      |
| <p>\<number></p><p>(Optional)</p>       | <p>Provide the number of times the function key must be applied.<br><strong>Note</strong>: If no number is provided, the action automatically uses 1 as the default value.</p> |

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

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

### **Example: Simulating a Function Key Press on a Element**

In this example, we explain how to simulate pressing a function key on a element within the application.

* **Action**: Send Function keys
* **Input Value**: F5
  * The argument (**F5**) specifies the function key to simulate on the captured element.
* **Output Value**: {Status}
  * The result of the function key action is stored in the **{Status}** dynamic variable with the following possible values:
    * **True**: If the function key is executed successfully.
    * **False**: If the function key is not executed successfully.
* **Logical Explanation**: The **Send Function Keys** action reads the value from the **Input Value** column (**F5**). It identifies the captured UI element and simulates the corresponding function key. The execution result (**True**) is stored in the **{Status}** variable.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FdaSV2gH7G01E4U97CxGo%2Funknown.png?alt=media&#x26;token=de2b41bc-a17a-48b7-ae47-fe2769c10fb0" alt=""><figcaption></figcaption></figure>
