So I am trying to automate a task in an app using pywinauto and i want to know the control identifiers of only elements inside lets say context menu or elements inside dropdown menu for ex:
I know that we have way to obtain control identiafiers for a dialog by :
app.PageSetup.print_control_identifiers()
Or The list of identifiers for the Edit control in the dialog using :
app.PageSetup.Edit2.print_control_identifiers()
But how to go about doing t his for Context menu items or drodown items?