Get element value

Description

Extracts the "Value" attribute from a selector. The 'Save value to variable' activity appears automatically when choosing the 'Get element value' activity. It automatically saves the value to a variable. However, the activity is not mandatory to use and can be removed from the workflow.

Parameters

Interface element

Allows you to select an item from a list of created ones. After the item has been selected, the visual display of the item will automatically appear.

If the 'Use focused element' option is selected then the robot will read the value of the element where the cursor is located.

Comment

Contains an annotation to the activity. The input text will be displayed above the activity name.

Result

The value is stored in the element_value variable by default. This variable represents a string. For example, if a folder with files in the Windows explorer is opened and if any file in this folder, for instance, "ocr_picture.png" is selected using the 'Element Picker' tool, then the result will be the following: "ocr_picture.png".

Usage Examples

This activity can be useful when it requires to work with editing fields. In this case, it is possible to get content of the field. For example, in the 'Internet Explorer' browser, the 'Value' attribute of the field with URL will contain the URL itself.