I am working with QTP 11 and the application that I'm dealing with has a sub menu that, due to the number of menu items, runs down and off the screen. The object is recognized as a WinMenu object. The WinMenu.Select function works fine for menu items that are visible, but is very inconsistent for those items that are not.
Finding the number of items in the submenu list and then searching through them to build the menu path is what I am currently doing. The resulting menu path looks like this: "<Item 6>;<Item 5>;<Item 54>"
So the line of code looks something like this: .Select "<Item 6>;<Item 5>;<Item 54>"
It's Item 54 that causes the issue. It's way off the screen.