when i try to recognise a winmenu item it does not allow me
to do that but recognises it as window..i am using qtp 9.2
could someone help with this

Answers were Sorted based on User's Feedback



when i try to recognise a winmenu item it does not allow me to do that but recognises it as window..

Answer / amit kumar upadhayay

Hi buddy,
Please create a repository with the below object properties.

Name:- <Name of the menu>
Class:- WinMenu

menuobjtype:- <it should be the location of the menu in
terms of number>

Type,Value=None

Regards,
Amit Kumar Upadhayay

Is This Answer Correct ?    1 Yes 0 No

when i try to recognise a winmenu item it does not allow me to do that but recognises it as window..

Answer / pavan

Hi try this,

x = Window("window name").WinMenu("menu name").GetItemProperty("file name", "SubMenuCount")
msgbox x

For Example:

x = Window("Notepad").WinMenu("Menu").GetItemProperty("File", "SubMenuCount")
msgbox x

Is This Answer Correct ?    1 Yes 0 No

when i try to recognise a winmenu item it does not allow me to do that but recognises it as window..

Answer / suresh chand

sorry to post a question where answer is expected..but i
dint find option to make a comment.

i have a scenario where the count of items in winmenu is
required..there are no properties other than "menuobjtype"
related to winmenu..so please help me in getting the count
of items present in a winmenu..

thanks in advance

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How to apporach while starting the automation testing?

3 Answers   Patni,


How can you delete the results file (XML)

2 Answers  


can we run the scripts of qtp 8.2 in the qtp7.0?

1 Answers  


How to delete an object from the object repository?

0 Answers  


WE ARE PLANING TO DESIGN AUTOMATION FRAME WORK. HOW TO CALL CONFIGURATION SCRIPT FILE(.VBS) FROM DRIVE SCRIPT FILE(.VBS)

1 Answers  






can any one tell me how to select some text.i need the script for that

1 Answers  


What is difference between function and procedure?

41 Answers   HCL, IBM, iGate, Infosys, TCS, Veritas, Wipro,


Can any one please list me out the shortcut keys for some functionalities in the QTP .. for example ..to record...to run...etc

6 Answers   Keane India Ltd,


What is the D/B Test managemet tool and bug trcking tool? Ans send to pbr.qtp@gmail.com

1 Answers   Cap Gemini,


How can i use Output Check points in QTP

2 Answers  


How to save your test using quicktest professional (qtp)?

0 Answers  


In a shared Object Repository in QTP if some object is changed how can the other script which is using the same object can be known

6 Answers   iGate,


Categories