JackSparrow
10 years agoFrequent Contributor
Selecting the MainMenu Options
Hi all,
Am trying to Navigate through the main Menu options as below
In the Above Picture Until I click on Home button the remaining options will not be enabled .I need to Select File and Navigate through the DropDown Sub-Menu
so I have written the below code
def menuselection():
mainmenu = Sys.Process("Teachers.debug").VCLObject("frmMain").VCLObject("barRibbon")
mainmenu.Select("Home")
mainmenu.Select("File|Functions|XYZ|ABC Navigator")But O/P Shows "Unable to find the object Select("Home"). See Additional Information for details."
Maybe using another method to select items will solve the problem?
I usually use .Click("");
E.g:
mainmenu = Sys.Process("Teachers.debug").VCLObject("frmMain").VCLObject("barRibbon") mainmenu.Click("Home") mainmenu.Click("File|Functions|XYZ|ABC Navigator")Let me know if that works !
altemann thanks for the help , actually there is an frame name which was not showing in Object spy but was visible on the menu so in between I linked with that frame name then the menu name as you said so it worked thanks once again