Cloned controls and the UseKeys property
When interrogating applications that create multiple instances of controls with identical types, such as rows in a table or multiple document interface (MDI) child windows, use the UseKeys property to tell Pega Robot Studio to work with all of the controls through one interrogated object. UseKeys also allows you to work with an unknown number of identical items. Essentially, the cloned controls are a list of controls that are easier to work with in automations.
To enable cloning check the UseKeys property in the Property Grid for the highest level control that requires cloning. Enable UseKeys for the control to specify interactions with specific instances of the control in automation logic.
When you interrogate an MDI window, Robot Studioidentifies a client and child control, as shown in the following figure:
When you enable the UseKeys property for a control, it becomes a cloned control. The Palette shows how many instances are attached to a cloned control instead of showing the eye icon. If the control has 10 or more instances, the Palette will show 9+.
As you open multiple instances of the target (for example, the MDIChild window), multiple matched targets are displayed in the Targets section, as shown in the following figure:
- Interrogating cloneable targets
When interrogating an application that contains cloned controls, you can confirm matching for each clone by using the Make Prototype function. This function applies the match rules used when the initial target instance (the prototype) was interrogated to a clone of the target by setting the clone as the prototype.
Previous topic Working in the Application Designer Next topic Interrogating cloneable targets