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 |
I am a beginner plz tell me,how do we write scripts in QTP? In my opinion we can write scipts in expert view or there is another option where we can write scripts. plz tell me.
What is the difference between call to existing action and copy of an action?
How to capture data from images in QTP and produce them in Excel sheet ?
I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new link is created in the home page. This link is dynamic as it changes every 3 seconds. Obviously the new link is not in my Object Repo and I am trying to find a way how can I do a check or get the propery of the link I created. I can do it on keyword, but I need to do a check on expert mode, vbscript. I always get an error that is not identified whenever i try to check it (browser(b),page(p).link(newlink). Any idea?
What does it mean when a check point is in red color? what do u do?
write a qtp script to verify that the business price is twice the economy price in flight reservation window
How to data driven test for Win objects in QTP ?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
How the smart identification is used in real time?Please explain with an example
How is GC reddy online program Will i get placed How are the placements.
Write test cases for copy and past password in password field ?
hi all, I want to know about the QTP scripts, i have read more books but all areis to be a theory so how can i improve my script skills. if anybody knows about qtp scripts plz guide me and i need a sample scripts.my mail id is karthis4u@gmail.com, 9986667831 If you all have any data send it to akadi111@gmail.com