Unable to select Sub Menu Items...
Posted: Fri Aug 19, 2011 1:57 pm
We have a windows Application with main menu with sub menu items. The problem we are facing is, we are able to spy and work with the main menu items. But we cannot read or spy the sub menu items of the main menu item.
We used instant tracking also to spy the Sub menu items; spy is giving the sub menu items. However in run time Ranorex couldn’t find the submenu item even after the main menu item is focused and sub menu item we want to select is visible.
We also tried to read the “MenuItem” and “RawText” from the main menu item programmatically. Even it is not giving any sub menu items list.
IList<Ranorex.MenuItem> subMenuItems= MainWindow.Instance.MainWindowForm.MenuBar.MenuItemFile.FindDescendants<Ranorex.MenuItem>();
subMenuItems.Count is 0.
IList<RawText> SubMenus = MainWindow.Instance.MainWindowForm.MenuBar.MenuItemFile.FindDescendants<RawText>();
SubMenus.Count is 0;
Please refer the attached document for more information and process we are following.
Currently we are using the key board shortcuts, up and down arrow keys to work with sub menu items as work around.
Please suggest us any way to work with the sub menu items.
Thanks
Santosh Ramancha
We used instant tracking also to spy the Sub menu items; spy is giving the sub menu items. However in run time Ranorex couldn’t find the submenu item even after the main menu item is focused and sub menu item we want to select is visible.
We also tried to read the “MenuItem” and “RawText” from the main menu item programmatically. Even it is not giving any sub menu items list.
IList<Ranorex.MenuItem> subMenuItems= MainWindow.Instance.MainWindowForm.MenuBar.MenuItemFile.FindDescendants<Ranorex.MenuItem>();
subMenuItems.Count is 0.
IList<RawText> SubMenus = MainWindow.Instance.MainWindowForm.MenuBar.MenuItemFile.FindDescendants<RawText>();
SubMenus.Count is 0;
Please refer the attached document for more information and process we are following.
Currently we are using the key board shortcuts, up and down arrow keys to work with sub menu items as work around.
Please suggest us any way to work with the sub menu items.
Thanks
Santosh Ramancha