Forum Discussion
Julia_K
13 years agoSmartBear Alumni (Retired)
Hello Pankaj,
You cannot use the Find method to get menus and menu items.
To get a menu, please use the MainMenu, SystemMenu, PopupMenu, StripMainMenu, or other properties.
For example:
Set Menu = Sys.Process("TestedApp").WinFormsObject("Main").StripMainMenu
To get menu items, please use the Items property of the menu object. For example:
Set MenuItem1 = Menu.Items("File")
Set MenuItem2 = Menu.Items(1).SubMenu.Items(0)
For more information on working with menus and their child items, please see the Working With Menus - Basic Concepts and Addressing Menu Items Help topics.
Please let us know if you need anymore assistance.
Thank you.
Related Content
Recent Discussions
- 8 hours agoSubhraDas
- 2 days agotramuntana