Skip to content

Functions Activity

The Functions activity enables users to determine the occurrence count of specific elements or verify their existence within browser and Windows applications. It also supports refreshing designated UI components or entire application pages to ensure data consistency.

Field Description Requirement
Application name The reference name of the application previously opened or attached, selected from the dropdown menu. Required
Field The XPath location of the specific area or element where the action is performed. Required
Result variable name The name of the variable used to store the data retrieved by the activity. Required
Action The specific operation to be performed, such as Element Count, Refresh, or Exist. Required
Retry Count The number of attempts the system will make to complete the operation. The default value is 1. Optional

Action Types & Examples

Element Count

  • Format: digit (string)
  • Example Result: "5"

Exist

  • Format: boolean
  • Example Result: "true"

Refresh

  • Format: string
  • Example Result: "success"

Implementation Examples

Field Setup - Application name: ${robustaWebpage} - Field: "(//input[@title="Arama"])[1]" - Result variable name: countResult

Execution Parameters - Action: Element Count - Retry Count: 7

Technical Notes

The Exist operation returns a boolean value (true or false) indicating the presence of the specified element. The Element Count operation returns the total number of matching elements as a digit in string format (e.g., "3"). The Refresh action can be targeted to a specific XPath or applied to the entire application page.