Declaring a Screen Using the SAP GUI Technology
You can declare a screen of an application using the SAP GUI technology.
For general information on this topic, see Declare a Screen.
Set Screen Criteria
Screen criteria are set on the properties of the root component of the targeted screen. They are used by the SAP GUI technology as follows:
The SAP GUI technology searches the DOM tree to find all DOM components matching the screen’s criteria. If a component matches, the technology does not search its subtree to find other instances of the screen. The technology creates one instance of the screen for each matching component.
-
Precise enough to match the desired root component, and no other.
-
Robust enough to still work should the screens change.
-
You can use operators to define the value of properties.
-
You must declare at least one recognition criterion.
-
You can set multiple criteria on the same property, which are then connected by a logical OR.
Advanced Recognition Options
-
Must exist means that the screen is not recognized unless the element or elements defined as must exist are detected.
-
Must not exist means that the screen is not recognized if an element defined as must not exist is detected.
-
Set as collection means that the element consists of multiple parts - for example, a list with multiple entries.
Advanced Parameters
You can use the following advanced parameters when declaring a screen using the SAP GUI technology.
Refresh screen recognition
Defines when the screen recognition starts refreshing. At a fixed time interval option must be selected for the screens of SAP GUI for Windows Application.
Multi Instance
Indicates if this screen can have multiple running instances. If No, only the first running instance will be recognized. Set this parameter as No to optimize the recognition.
Automatic Capture on Polling
This option allows screen elements to be automatically captured on polling, their latest value being available for every event. By default, this option is set to No.