Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to recognize menu options in dp in qtp
#7
Solved: 10 Years, 9 Months, 3 Weeks ago
Rajesh,

ur code is not working fine bcz first part of statement is in DP and second part is in programmatic.

Code:
Window("text:=Flight Reservation").WinMenu("Menu").Select "File;New Order"
First Part Second part

As per my exp both parts(first and second) part sud be either in progmratic or in DP, but not first part is in DP and second part in programmatic.
That is the reason ur code is not working.

If att u want to gor duel program then u can put the first part in programmatic and second part in DP.

see the code here

This is working fine-
Code:
Dialog("Login").WinEdit("attached text:=Agent Name:").Set "rajesh"

This is NOT working fine-
Code:
Dialog("text:=Login").WinEdit("Agent Name:").Set "rajesh"

To answer ur second question,

You wont get the properties by spy for the option which will be there under main menu options like in IE--menu--"Favorites"--"Add to Favorites.."
Reply


Messages In This Thread
RE: how to recognize menu options in dp in qtp - by Rajashekar Gouda - 01-21-2008, 04:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to recognize objects in SilverLight application through QTP Guest877 1 2,526 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,503 10-28-2015, 12:34 PM
Last Post: vinod123
  QTP does recognize object chadadus 7 4,195 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,564 08-27-2014, 10:11 AM
Last Post: vinod123
  Handling .NET framework menu in webpage using QTP 10 vishnu1067 0 2,212 05-15-2014, 05:30 PM
Last Post: vishnu1067

Forum Jump:


Users browsing this thread: 1 Guest(s)