Forum Discussion
Thanks, but I am not sure what you exactly mean...
In Object Browser I'm able to see the MenuItem and it has a name VCLObject('Item_Import')
- but this still doesn't work: w.MainMenu.Click(File|Import|[0]|[0]|[0])
and this is in the additional info:
Items: '', '', '', '', '', '', '', '', '', '', '', ...
Aliases.luks.IDAKTControl
You may need a "helper" routine.
If you want people/your tests to be able to select by name, but you can only select using index numbers, then you need to translate those names into index number within your script.
So send the helper routine a menu object, and the option name to be used. It scans through the child objects of the menu (MenuItem objects in your case by the sound of it). When it finds the desired option, it sends back the child object number (assuming that ties in with it's index number). Or it a returns an error if not found.
If your menu runs several levels deep, you may need to call it recursively adding to your "selection string" as each index number is returned.
If you see what I mean?
Related Content
- 11 months agoSjef
- 11 years agolaxmankumar
- 12 months agoMW_Didata
Recent Discussions
- 27 minutes agoashly