Read and Set Value of an Element During Recording
Now, you can read and set the value of an element during the recording of the steps.
Context
Read Value of an Element
Refer to the following steps to get the value of an element during the recording of the steps.
-
You can read the value of an element only in enabled Get Tool mode. Click
to enable the Get Tool mode.Once the mode is enabled, the icon is highlighted and a hint message is displayed at the bottom of the recording widget.
-
To generate the activity, place the cursor at the targeted element and the selection is highlighted with the green bounding rectangle. If the bounding rectangle targets the correct element, press the keyboard shortcut Alt + Ctrl to generate the activity, otherwise, move the cursor further for the correct selection.
The activity is generated with the output variable and you can further utilize this output variable according to your use case.
-
If you try to delete the activity, whose output variable is referenced to some other activity, the error message is displayed at the bottom of the recording widget.
-
Once the recording is exported, the generated automation will have the activity with the same output parameter as shown during the time of recording in the recording widge
In SAP WinGUI:
-
When you press the keyboard shortcut Alt + Ctrl, the More option can be triggered to pop up. This behavior is expected as the pressing of the Alt key is mapped to open the pop-up window of the More option. Press anywhere in the SAP GUI application after reading the value of an element, and the popup window disappears.
-
If the SAP GUI application runs in the monitor scaled to values other than 100%, the green border around the element can appear in different locations.
Set Value of an Element
-
Once the Set activity is generated, you can change the value of the input if required.
The input can be of three types. You can provide:
-
hard coded value which is shown inside double quotes.
-
create and assign new variable which is shown with a prefixed ‘+’ symbol.
-
select an input from a list of pre-existing variables.
-