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 |
Wat is the command used to add an object(properties) to an object repository?
How did u write macros?What is the main importance of VB macros in testing environment?
In what occasion we can specify global sheet and action sheet?
How to convert non-reusable action into reusable action in QTP?(i know by default QTP will take it as a non-reuable action )(Chandana) plz urgent?
I'm facing this problem while automating my application..its a web based apps.. In my application there are few webtables are displaying in the page.In the different cells there are links and action buttons.Problem is there is link in different web tables corresponding to one name.Hence the properties of the objects(say a link) are same except the x,y co ordinate of the object.So my script is not able to distinguish between the two links present in different cells of web tables with same name.Kindly help on this..
Explain script generated after applying database check point?
WHAT IS OBJECT REPROSITORY?
why text area checkpoints cannot used for web applications
How many types of actions are there in quicktest professional (qtp)?
Can we test the Word Document using QTP Tool? We should test the page size,page set up, paragraph indentation and spacing, font size of the the character int the page.
Syntax for how to call one script from another and Syntax to call one "Action" in another?
What are they Advantages and Disadvantages in QTP 9.2?