how to recognize menu options in dp in qtp - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: how to recognize menu options in dp in qtp (/Thread-how-to-recognize-menu-options-in-dp-in-qtp) |
RE: how to recognize menu options in dp in qtp - Rajesh - 01-22-2008 Let us wait for Ankur's comment and see If he has any other option. RE: how to recognize menu options in dp in qtp - Ankur - 01-23-2008 In tools > options >windows aplications > advanced >record settings option> Menu Select "Ignore menu initialization" record the menu part and let me know the result. RE: how to recognize menu options in dp in qtp - Rajesh - 01-24-2008 Hi Ankur, I tired as u said, but didnt see any change, script is recording as usual Window("Flight Reservation").WinMenu("Menu").Select "File;Open Order..." and i did object spy on file;New orders and file;Open Orders, obects are geting identified as Window::Window I didnot see any change. I think it is not at all possible to use descriptive programming for WinMenu("Menu"). Let us know your comment....... RE: how to recognize menu options in dp in qtp - vadivelan - 01-24-2008 Guys, After analyzed i got solution for this so please try this code in QTP 9.2 for Window menu option Code: dim A,B Please correct me if I'm wrong. RE: how to recognize menu options in dp in qtp - Rajesh - 01-24-2008 it's great dude, it's working fine but i am not able to understand "B("menuobjtype").value=2" is this a property of the object, what does that 2 stands for. if possible could you pls explain this. RE: how to recognize menu options in dp in qtp - vadivelan - 01-24-2008 I write this script based on the OR. In OR, for Winmenu description properties shown as "menuobjtype value=2". Sorry Rajesh, I dont know exactly what "2" indicates. Because we implemented tool this month and we are in knowledge base. If any body know please explain its useful for all. RE: how to recognize menu options in dp in qtp - hari - 01-28-2008 hi , back on the forum after a vacation The WinMenu(windows menu) test object does not have any test object properties. The number 2 is called the index number of the item in the menu. the index starts from 1 and continues.I.e if you want to select the first item the index will be 1 if you want to select the second item the index will be 2 and it goes on and the question is not clear you can use it like this Code: Browser("Customize Your Settings_2").WinMenu("ContextMenu").Select "<Item [b]2[/b]>" RE: how to recognize menu options in dp in qtp - vadivelan - 01-28-2008 Thanks Hari.. You mean that index 1 for New and Index 2 for open is it ? RE: how to recognize menu options in dp in qtp - hari - 01-29-2008 yes , the above mentioned code is for WINDOWS browser if it is to be used for the flight application then it can be used as Window("Flight Reservation").WinMenu("Menu").Select "<Item 1>;<Item 2>" (TO SELECT FILE AND THEN OPEN) in case of any thing else reply back RE: how to recognize menu options in dp in qtp - Rajesh - 01-30-2008 it's cool....... Thanks man..... |