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

i got a problem with the menu item in dp.
Here is the code.

Code:
Invokeapplication "notepad.exe"

Window("text:= Untitled - Notepad").WinMenu("text:=&File").Select "<item 3>"     'File->save  ERROR: "Cannot identify the specified item of the [ WinMenu ] object. Confirm that the specified item is included in the object's item collection."

'Window("text:= Untitled - Notepad").WinMenu("File").Select "<item 3>"  "Is also not working Error: The "File"/"ContextMenu"  object was not found in the Object Repository.
Check the Object Repository to confirm that the object exists or to find the correct name for the object."
Details: Window("text:= Untitled - Notepad").WinMenu("File").Select "<item 3>"

Window("text:= Untitled - Notepad").dialog("text:=Save As").Wincombobox("attached text:= Save &in:").Select "desktop"
Window("text:= Untitled - Notepad").Dialog("text:=Save As").Winedit("attached text:= file &name:").click
Window("text:= Untitled - Notepad").Dialog("text:=Save As").Winedit("attached text:= file &name:").Set  "vasu"
Window("text:= Untitled - Notepad").Dialog("text:=Save As").Winbutton("text:=&save").click
Window("text:=Vasu - Notepad").Close


Is there any mistake in my script.

Please update the script.

Thanks in advance.
Reply


Messages In This Thread
RE: how to recognize menu options in dp in qtp - by vasu_tj3 - 02-06-2008, 12:33 AM

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,196 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)