# Send Function Keys as Inputs

This is a pre-built Action located under the captured element. The functionality of this action in Avo Assure is to perform the send function key action specified in the input value on the captured element. The result is stored in the given dynamic variable for further use during test execution.

## **Syntax**

**Input Value**: `<FunctionKey>;<Number(Optional)>`

| Argument                            | Description                                                                                                                                                                       |
| ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<FunctionKey><br>(Required)</p> | Provide the function key you want to perform on the element.                                                                                                                      |
| <p>\<Number><br>(Optional)</p>      | <p>Provide the number of counts you want to apply the function key.<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)`

| 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 Captured Element**

In this example, we are explaining how to simulate pressing a function key (e.g., Enter) on a captured UI element within the application.

* **Action**: Send Function Keys as Inputs
* **Input Value**: Enter
  * The first argument (**Enter**) 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 as Inputs** action reads the value from the **Input Value** column (**Enter**). It identifies the captured UI element, and simulates the corresponding function keypress. The execution result (True) is stored in the **{Status}** variable.

<figure><img src="/files/QdJiwCKnZSiCQqF4RAnS" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/web/common-web-operations/send-function-keys-as-inputs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
