
Explanation:
(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.
* Launches the adapter and begins the interrogation session.
* Interrogate the Windows form.
* Interrogates the main form containing the menu bar control (the top-level parent for menus).
* Navigate to the window that contains the menu.
* Ensures the correct active window is in focus for interrogation.
* Select the control in the control hierarchy list.
* Identifies the menu bar or parent control within the form's hierarchy.
* In the More menu, select Add menu items.
* Opens the configuration dialog for menu interrogation.
* In the Add Menu Items dialog box, select the menu items.
* Displays a list of all available menu items to expose as automatable elements.
* Click OK to save the selection.
* Finalizes interrogation and creates the selected menu items as controls in the project hierarchy.
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).