Identifying menu items via AutomationId
Hi,
I am new to testcomplete and currently trying to test a windows desktop application using the dev express framework.
I am trying to open the popup menu "Display" of my application and then click on the menu item "Load layout".
I would like to identify all elements via AutomationId so that I don't have to update my tests if a new menu item is added to the application. I don't want to navigate to the corresponding menu item via up/down keys or use some coordinate-dependent clicks.
The opening of the Display menu works. The LoadLayout element is found, but the click is not executed:
Here is my code (python):
openDisplayMenu = myapp.Find("WPFControlAutomationId", "Display", 100)
openDisplayMenu.Click()
importLayout = myapp.Find("WPFControlAutomationId", "LoadLayout", 100)
importLayout.Click()
Could it be that this is not supported by testcomplete, or have I made a mistake somewhere?
Thank you for your help!