Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handling Save Windows Diolog
#1
Not Solved
Can any one tell me how to set the value in the dilog box that come in the windows.When i click on a pdf i can options to open/save/cancel options.i am able to open the Pdf uing Divice replay.I am able to get to a point of clicking the save button.but i am not able to handle after that.
this is what qtp has recorded.even when i try to play back it is giving an error to set the pdf name.

Code:
Browser("Private Empty Car Storage(PECS_2").Dialog("File Download").WinButton("Save").Click


Dialog("0% of  from xtest.c02.my.uprr._2").Dialog("Save As").WinEdit("File name:").Set "pdf"
Dialog("0% of  from xtest.c02.my.uprr._2").Dialog("Save As").WinButton("Save").Click
Dialog("0% of  from xtest.c02.my.uprr._2").WinButton("Close").Click
Reply
#2
Not Solved
Hi,

Try send keys method..


Code:
Browser("Private Empty Car Storage(PECS_2").Dialog("File Download").WinButton("Save").Click
Dialog("0% of from xtest.c02.my.uprr._2").Dialog("Save As").WinEdit("File name:").Click
set oshell = createobject("wscript.shell")
oshell.sendkeys "p"
oshell.sendkeys "d"
oshell.sendkeys "f"
set oshell = nothing
Dialog("0% of from xtest.c02.my.uprr._2").Dialog("Save As").WinButton("Save").Click
Dialog("0% of from xtest.c02.my.uprr._2").WinButton("Close").Click
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Automating save dialog box in windows using UFT shipu 0 4,801 01-16-2015, 07:54 PM
Last Post: shipu
  QTP - windows 'File Save' Dialog not visible jennifer 7 10,066 06-02-2013, 04:04 PM
Last Post: theajaykumar
  Save or Save As not working for QTP 11 Nick 1 3,284 08-13-2011, 12:16 PM
Last Post: vaddevinod
  What is the errors handling ? keni 1 2,601 10-26-2009, 09:47 AM
Last Post: Saket
  Recovery Manager not handling windows pop up error message. sanjuktab 5 4,355 09-30-2008, 10:03 PM
Last Post: butair

Forum Jump:


Users browsing this thread: 1 Guest(s)