| || |
problem in identification of Menu items
I have a problem in identifying the menu items in my application with QTP(8.2+.net addin). this is a customized .net application.
while recording with QTP, the menu items are identifying as 'SwfObject'class and the selection of each menu item recognized with x,y coordinates using 'Click' Property.
For Example, If I select the 'File' Menuitem in the MainMenu then the statement recorded as :
SwfWindow(<appln name>.SwfObject("SwfObject").Click x,y
I am unable to get the selected menuitem text using the properties of 'SwfObject' class.
Could you please let me know the property with which I get the selected menuitem text.
Expecting response as soon as possible
Thanks in advance
Re: problem in identification of Menu items
You can try out using Type method for accessing menus in your application.For accessing File -> Open try out below mentioned code which means Alt + f + o
Firstkey = "f"
Secondkey = "o"
SwfWindow("").Type micAltDwn + Firstkey + Secondkey
Hope this works....