Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to recognize menu options in dp in qtp
#6
Solved: 11 Years, 4 Months ago
Hi Ankur,

This site is very much helpful for everyone.
Thanks a lot for solving all our issues.

I did try in the same way how you explained above. I dont know how can we write
WinMenu("Menu") in descriptive programming method.

Code:
SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open"
Dialog("text:=Login").WinEdit("attached text:=Agent Name:").Set "rajesh"
Dialog("text:=Login").WinEdit("attached text:=Password:").Set "mercury"
Dialog("text:=Login").WinEdit("attached text:=Password:").Type  micReturn
Window("text:=Flight Reservation").WinMenu("Menu").Select "File;New Order"
Window("text:=Flight Reservation").WinMenu("Menu").Select "Analysis;Reports..."

Here the last two lines of the script is not running, reason is I used discriptive programming to call the parent {Window("text:=Flight Reservation")} and normal method to call the child.

please let me know how can we call the child object WinMenu("Menu") using descriptive programming.
I did object spy and all the objects has same property (File - New, File - open).
Reply


Messages In This Thread
RE: how to recognize menu options in dp in qtp - by Rajesh - 01-21-2008, 12:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to recognize objects in SilverLight application through QTP Guest877 1 2,653 08-03-2018, 08:33 AM
Last Post: Manisha
  When trying to recognize the object in QTP, each object is recognized as “WinObject:S geetasarvadnya 2 3,765 10-28-2015, 12:34 PM
Last Post: vinod123
  QTP does recognize object chadadus 7 4,556 09-05-2014, 01:16 AM
Last Post: chadadus
  QTP 11 and IE9 64bit on Win7&SP1 64bit, QTP does not recognize objects in website jpalos 4 8,710 08-27-2014, 10:11 AM
Last Post: vinod123
  Handling .NET framework menu in webpage using QTP 10 vishnu1067 0 2,333 05-15-2014, 05:30 PM
Last Post: vishnu1067

Forum Jump:


Users browsing this thread: 8 Guest(s)