Ask AI
Skip to main content

Get input element by code

Function: Get input element by code

This action helps you find a specific input field or dropdown menu on your application's screen by using its unique identifier. It's incredibly useful when you know the element's code but don't have a direct reference to it, allowing you to interact with it in subsequent steps.

Input

  • Code
    • Description: The unique identifier (code) of the input field or dropdown menu you want to locate on your application's screen.
    • Type: Text
    • Required: Yes

Output

  • Element
    • Description: The specific UI element (like an input field or dropdown menu) that was found on the screen using the provided code. This element will be stored in a variable that you define, making it available for use in subsequent actions.
    • Type: UI Element

Execution Flow

Real-Life Examples

Here are some practical ways you can use the "Get input element by code" action in your applications:

  1. Pre-filling a Customer ID in a Form

    • Scenario: You have a form where you need to automatically populate a "Customer ID" field based on previous data.
    • Inputs:
      • Code: "customer_id_input_field"
    • Result: The input field with the unique code "customer_id_input_field" is found and stored in a variable named 'Element'. You can then use this 'Element' variable in a subsequent action to set its value (e.g., "Set Value of Element to 'CUST-001'").
  2. Selecting a Specific Order Status in a Dropdown

    • Scenario: You need to update an order's status to "Processing" in a dropdown menu on an order details page.
    • Inputs:
      • Code: "order_status_dropdown"
    • Result: The dropdown menu with the unique code "order_status_dropdown" is found and stored in a variable named 'Element'. You can then use this 'Element' variable to select the "Processing" option (e.g., "Select 'Processing' in Element").
  3. Retrieving Text from a Search Bar

    • Scenario: You want to capture the text a user has entered into a search bar to use it in another part of your application or for logging.
    • Inputs:
      • Code: "main_search_bar"
    • Result: The input field with the unique code "main_search_bar" is found and stored in a variable named 'Element'. You can then use this 'Element' variable to get its current text (e.g., "Get Value of Element and store in 'SearchQuery'").