(Correct Order):
Start the interrogation for the Windows application.
Interrogate the Windows form.
Navigate to the window that contains the menu.
Select the control in the control hierarchy list.
In the More menu, select Add menu items.
In the Add Menu Items dialog box, select the menu items.
Click OK to save the selection
Unlike web or text-based controls, Windows application menus (such as File, Edit, or Help) are often rendered as non-standard Windows controls that cannot be directly interrogated using the bullseye tool.
Instead, Pega Robot Studio provides a specific method to add menu items through the interrogation hierarchy.
According to the Pega Robotics System Design and Implementation Guide, section “Interrogating Menu Items in Windows Applications”:
“Menu items in Windows applications are not directly interrogated through visual selection.
Instead, the process involves interrogating the parent form, identifying the menu control in the hierarchy, and then using the ‘Add Menu Items’ option to expose individual menu commands as controls.
Steps:
Start interrogation for the Windows adapter.
Interrogate the main form that contains the menu bar.
Navigate to the window containing the menu to ensure visibility.
In the control hierarchy, select the menu bar control.
From the More menu, choose Add menu items.
In the Add Menu Items dialog box, select the menu items to expose as interrogated controls.
Click OK to confirm and save your selections.”
Detailed Step Reasoning:
Start the interrogation for the Windows application.
Interrogate the Windows form.
Navigate to the window that contains the menu.
Select the control in the control hierarchy list.
In the More menu, select Add menu items.
In the Add Menu Items dialog box, select the menu items.
Click OK to save the selection.
Final Ordered Steps:
Order
Interrogation Step
1
Start the interrogation for the Windows application.
2
Interrogate the Windows form.
3
Navigate to the window that contains the menu.
4
Select the control in the control hierarchy list.
5
In the More menu, select Add menu items.
6
In the Add Menu Items dialog box, select the menu items.
7
Click OK to save the selection.
[Reference:Extracted and verified from Pega Robotics System Design and Implementation Guide, Interrogating Menu Items in Windows Applications section (Pega Robotics 19.1 and later)., , ]