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
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 |
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 |
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 |
How to apporach while starting the automation testing?
How can you delete the results file (XML)
can we run the scripts of qtp 8.2 in the qtp7.0?
How to delete an object from the object repository?
WE ARE PLANING TO DESIGN AUTOMATION FRAME WORK. HOW TO CALL CONFIGURATION SCRIPT FILE(.VBS) FROM DRIVE SCRIPT FILE(.VBS)
can any one tell me how to select some text.i need the script for that
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
What is the D/B Test managemet tool and bug trcking tool? Ans send to pbr.qtp@gmail.com
How can i use Output Check points in QTP
How to save your test using quicktest professional (qtp)?
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