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 write scripts in QTP?
What scripting language is QTP of?
How you know that a test case is a regression test case
wht is the difference between action and functio?
how will u choose a tool for test automation ?
How to open an application through scripting?
How many types of recording modes in qtp? Describe each type with an example where we use them?
Why u don’t like recording the script and writing the script
what is the difference between DATA TABLE and DATA SET?
What are FAST and NORMAL modes in qtp ? Why r these modes intended for ?
How many ways we can parameterize data in QTP?
how to do the batch testing in test director using manual testing procedure?