Template Matching
This surface automation feature is useful in screens with fluid layouts.
When is Template Matching Useful?
Template matching makes it possible to detect any pre-selected pattern on a user interface, including non-textual areas, regardless of the target location. A typical example is buttons with icons but no text. Template zones are helpful in detecting patterns on user interfaces with fluid layouts, where the positions of controls keep changing and the Labelled by property can't be used.
A template is treated like any other item and you can perform actions on it, such as clicking.
How Does Matching Work?
When you have defined a template, a pixel-to-pixel comparison between the template and the application’s screenshot is performed at run time. The highest matched region is returned as the recognized template.
This feature delivers added bot stability in all bot types.
How are Template Zones Used?
Choose the desired zone and right-click on the zone rectangle. Choose 'Create new Template from image selection'.
The rectangle will change to green. The Zone Type property in the Properties pane is set to 'Template'.