ContributionsMost RecentMost LikesSolutionsWPF Menu Selection Out application have a menu.Clicking/hovering over a menu item will bringup child menu items on the right hand side. I would like to select a menu item from the multi level menu. I am using the following code(Assume we have a menu like Cars->BMW, Bentley, Honda) var popuproot,arrayproperties,arraypropertyvalues, menuitem, anotheritem; popuproot = GetPopuproot(); popuproot.Refresh(); arrayproperties=Array("ClrClassName","Header.DisplayName","ClrFullClassName"); arraypropertyvalues=Array("XamMenuItem","Cars","Infragistics.Controls.Menus.XamMenuItem"); menuitem= popuproot.FindChild(arrayproperties,arraypropertyvalues,20); if( menuitem.Enabled==true) { menuitem.Click(); Delay(100); arraypropertyvalues=Array("XamMenuItem","BMW","Infragistics.Controls.Menus.XamMenuItem"); anotheritem = menuitem.FindChild(arrayproperties,arraypropertyvalues,20); if( anotheritem.Enabled==true) { anotheritem.Click(); } } I can see the the list of cars as a result of the first click(). However I am not able to click on "BMW". It fails saying that object does not exist(anotheritem) Any help is appreciated WPF- Dynamic item in object hierarchy.Hello, I need to click on a menu(infragistics) in my application. However, I have a dynamic item in the object hierachy. Aliases.MyAPP.HwndSource_WindowWithBar.WindowWithBar.tabbedDock.dockManager.SplitPane.contentPaneviewde2424c7237444e38de046eeece787d3.MainWindowView.HeaderedContentControl.MenuRegion.MenuView.MenuControl.XamMenuItem.Click(); However, testcomplete is failing because it can't find "contentPaneviewde2424c7237444e38de046eeece787d3".It is a dynamic item. How can I resolve this issue? SolvedRe: Arrow keys for Menu selection not working properlyTanya, I am not testing the menu itself, but clicking the menu opens up a report in the UI and I need to test that. Gena, thanks for the information. Arrow keys for Menu selection not working properlyHi, The following way of navigation is not working as expected(Wpf application) Aliases.SomeApp.XamMenuItem.Keys("[Down]"); Aliases.App_Shell.HwndSource_MainWindow.Keys("[Right]"); Aliases.App_Shell.HwndSource_MainWindow.Keys("[Enter]"); ................... Aliases.SomeApp.XamMenuItem.Keys("[Down]"); Aliases.App_Shell.HwndSource_MainWindow.Keys("[Right]"); Aliases.SomeApp.XamMenuItem.Keys("[Down]"); Aliases.SomeApp.XamMenuItem.Keys("[Down]"); Aliases.App_Shell.HwndSource_MainWindow.Keys("[Enter]"); Because of some reason it only works sometimes. How can we make sure the key inputs fpr menu selections are working consistently?Re-running current scripts to update checkpointsWe have a testcomplete script which opens many type of reports from menu, run the report and check some cells in the report grid against previous saved checkpoint data. If the reference data itself is changing, is there any way we can automatically update the saved check point values. For example, run the current test in "record" mode and test complete will just update the checkpoint values instead of comparing?Solved