Controlling an Item
The SAP GUI connector implements standard control methods described in Controlling Individual Entities. It also provides additional features for controlling items.
Read the Value of Any Property
The standard get method returns the value of an item:
-
The content of the ‘Value’ property for EntryFields
-
The content of the ‘Value’ property of the selected element for ListBox
-
The check state for radiobuttons or checkboxes
You can also get the value of any other property of the targeted element. To do this, use the following method:
|
getProperty |
Gets the value of a property of the targeted component |
Controlling Complex Items Via a Subtree
Using the SAP GUI connector, complex items such as tables often have a subtree containing their elements (like in Web).
Be aware that, very often, the subtree only contains visible elements. The following elements are generally not present in the subtree:
-
Elements of a collapsed branch of a tree
-
Non-visible elements
If you control a complex item using its subtree, you must manually refresh this subtree after executing actions that change the item display (such as scrolling or expanding).
You do this by using the following method :
|
refresh |
Force the item to refresh its subtree |
Example:
-
MyTree to target the Tree
-
MyParentItem to target the parent TreeItem
-
MyChildItem to target the child TreeItem