Skip to main content

Element

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

Term relate to The Element/Object on which the command will be executed.
The input depends on the chosen Zone: 

  1. If the Zone was set to be a Grouping zone (Default or Any other Zone you have created) -The Element will be the name of the Elements that have been extracted to this zone (in the Object Repository). You can choose the required Element by selecting it from the drop-down list in the Element field, or write its name in the Element field.

  2. TEXT: The Element will be the visible text on the screen. The identification will be done using OCR.

Example:  We will identify the first 'Logout' text on the device screen.

info
  1. To use regular expressions in the identification you can use the following syntax (as known in Java): regexp:<Value>
  2. See SeeTestAutomation- TextFilterSetLanguage commands for improving text recognition.

3. NATIVE or WEB: The Element will be the query using the Native/Web properties of the wanted Object.

    • For Native: It will use the UI internal model to identify it.
      The element format in this case is as follows: <method>=<value>
    • For Web: It will use WEB dom properties of the object to identify it.
      Similar to NATIVE, a <method>=<value> format will be used.

Example:  We will identify the first Object that has the value 'Logout' using its 'accessibilityLabel' property to click on it.

An additional option would be to use the ‘nclick:’ input before the element value. This option is only available for NATIVE and WEB options. When the "nclick" option is used, the click operation will be done using the native option as opposed to sending the click using the device OS.

Zone: WEB
Element: nclick:id=my_btn
Will generate javascript click event and not operating system event.