I'm facing the following problem : when I'm trying to select menu it doen't work sometimes and fails with 'Window was destroyed....' error.
I set Mouse Movement to 0 and use the following method - Aliases.MyApp.WaitAliasChild("MainForm", -1).MainMenu.Click("View|Go to Page|Pricing|Events");
So, I tried to solve it by adding delay aqUtils.Delay(1000) before - and it worked sometimes, but it started to fail again.
Then I started using refresh Sys.Process("MyApp").Refresh() before delay - and it worked stable for some time, but it started to fail again
Then I tried to Click on menu using Aliases.MyApp.WaitAliasChild("MainForm", -1).MainMenu.Items("View").SubMenu.Items("Go to Page").SubMenu.Items("Pricing").SubMenu.Click("Events");
but it causes runtime error with The control item 'Pricing' not found. message
I investigated items using Object Spy and it turned that Aliases.MyApp.MainForm.MainMenu.Items("View").SubMenu.Items("Go to Page").SubMenu.Count is -1
Tryed to use Aliases.MyApp.MainForm.Menu.MenuItems.Item(2).MenuItems.Item(3).MenuItems.Item(4).PerformClick();, but it didn't work.
So, for now the most 'stable' case is the first one - using Click the whole menu path....
Can smbody help me with it please?..