Get text on text element
Function: Get text on text element
This action allows you to retrieve the visible text content from any text-based display element on your application's screen. It's useful when you need to capture information that is shown to the user but isn't directly entered by them, such as a dynamically generated message, a status update, or a calculated value.
Input
- Element: The specific text display element on your page from which you want to extract the text. This could be a label, a paragraph, a heading, or any other UI component designed to show text.
Output
- Result: The actual text content that was found within the specified "Element". This output will be a piece of text (a string) that you can then use in other parts of your application, such as displaying it elsewhere, saving it, or using it in a condition.
Execution Flow
Real-Life Examples
Here are some practical ways you can use the "Get text on text element" action in your applications:
Example 1: Capturing a dynamically generated confirmation message
Imagine you have an order confirmation page where a unique order ID is displayed in a text element after a user completes a purchase. You want to send this order ID in a confirmation email.
- Inputs:
- Element: Select the text element on the confirmation page that displays the "Order ID".
- Result: The action retrieves the text, for example, "Your Order ID: #NCX7890123". You can then use this text in your email sending action.
Example 2: Validating a displayed status update
Suppose your application shows the "Status" of a task in a text element, which updates automatically. You want to check if the task status has changed to "Completed" before proceeding to the next step in your workflow.
- Inputs:
- Element: Select the text element that displays the "Task Status".
- Result: The action retrieves the current status text, for example, "Processing". You can then use a conditional action to check if this "Result" text is equal to "Completed".
Example 3: Logging user-facing information for debugging
You have a complex form where various calculations are displayed in text elements as the user fills it out. To help with debugging or auditing, you want to log the final calculated total shown to the user.
- Inputs:
- Element: Select the text element displaying the "Total Amount Due".
- Result: The action retrieves the displayed total, for example, "$150.75". This value can then be sent to a logging service or stored in a database for review.