The task is to open (click) menu item, e.g.
File >> Open using QTP 11.0
You can check here how to spy drop-down menu properties with object spy.
Below is the code that is autogenerated by QTP when I drag-and-drop
JavaMenu "File" from object repository:
I expected (from my experience of working with Java Tabbed Pane) that the next code should work:
JavaWindow("File: Test.java").JavaMenu("File").Select "Open"
Run Error: Inappropriate quantity of arguments or assigning value of property: JavaWindow("...").JavaMenu("...").Select (my translation of localized QTP message)
So it lools like
Select should not take any arguments.