The MustExist method is available in all technologies. It consists in detecting one or more components that are present in the screen to be controlled but not in any other. These components are declared as items on the page and their MustExist parameter is set.
Using this method, a screen is recognized as a page if:
The screen matches the page criteria
All MustExist items are found on the screen
The MustNotExist method is only available for the WEB and UI Automation technologies. It consist in detecting one or more components that are not present in the screen to be controlled but are present in others: These components are declared as items on the page and their MustNotExist parameter is set.
Using this method, a screen is not recognized as a page if one of its MustNotExist items is found on the screen. To declare a MustNotExist item on a page:
Add to the page a capture containing the component to be declared
Declare the item from this capture and set its MustNotExist parameter
In the parent page, declare an item that targets the desired root component
Set this item as root item in the subpage parameters
This method allows you to use advanced item declaration methods to target the root component.
The Ancestor method searches upwards in the hierarchy to find an ancestor component with a set of properties that make it unique. This ancestor component can't be part of an ascending hierarchy that is incorrectly recognized. With this method, you need to:
Declare an item that targets this ancestor component
Set this item as an ancestor of your item when you set item parameters
The target component will be searched in the descendance of the ancestor component.
Consider this use case:
In the following DOM, you want to target second leafnode (in orange):
The two leafnodes are the same, so, if you don’t use the Ancestor method, the first leafnode will always be recognized, not the second. You cannot use node (id=1) as ancestor, because it is ancestor of both of the leafnodes and the first leafnode will be recognized. So I must use subnode (id=3) as ancestor so that the second leafnode is recognized.
That is at a fixed distance (CX,CY) from the targeted component
That has unique, distinguishing properties
This component is typically a label component located near the target component. But it can be any other component, anywhere on the screen. With this method, you need to:
Declare an item that targets this label component
Set this item as Labelled by when you set item parameters (see Item Definition).
Desktop Studio stores as a criterion the distance between the targeted component and the label component. This distance is calculated in a unit independent of the screen resolution. The target component will be searched for between the components located at this stored distance from the label component.
The Items Pattern method consists in recognizing a set (pattern) of related components, rather than a single component. These components must be linked together by a parent-child relationship. One of these components is the target and will be addressed in the SAP Intelligent RPA project.
This method is useful when the target component has no (or insufficient) unique, distinguishing properties. The order in which pages are declared is significant. When the connector detects the opening of a screen, it searches for the first declared page whose criteria match. If you need to declare a generic page with broad criteria, you must declare it after declaring the rest of the pages. This ensures that screens are correctly recognized as generic pages.
1. | SAP Intelligent RPA - How to Capture SAP Logon and SAP GUI |
2. | SAP Intelligent RPA – Advanced Recognition Capability “MustExist Method” |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
26 | |
25 | |
21 | |
12 | |
9 | |
8 | |
8 | |
8 | |
8 | |
8 |