amithsid
11 years agoContributor
How to work with Menu-bar items-Cannot be Spied
Hello, I am not able to spy menu bar. The tree structure of the path is also failing at times- obj.Click("item1|item2|item3"); The text recognition is also failing at times. ...
- 11 years agoTypically you'll want to use the MainMenu or StripMainMenu property of the Form object.
More info on menus here and here.
Ex1:myForm.MainMenu.Click("File|Exit");
Ex2:myForm.StripMainMenu.Click("File|Exit");