02-06-2008, 12:33 AM
Hi Hari,
i got a problem with the menu item in dp.
Here is the code.
Is there any mistake in my script.
Please update the script.
Thanks in advance.
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.