Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP - windows 'File Save' Dialog not visible
#1
Hi all,

On recording a particular Web application with QTP,Have came across a problem for which I havent found a solution so far..


The script of importance is as follows:

Code:
Browser("Personalized Start Page").Page("XYZ").Frame("mainFrame_4").Link("address.csv").Click Browser("Personalized Start Page").Page("XYZ").Sync Dialog("0% of dms.php from XYZ-").Dialog("File Download").WinButton("Save").Click

My problem is that on recording the application with QTP and clicking the "address.csv" link another browser window comes up temporarily followed by the Windows "FileSave" dialog.The browser window which came up closes down when the Windows "FileSave" dialog is visible and I save the file to a windows location.

On the "Record and Run" settings under Qtp,have activated settings for web and windows applications.



But when I run this recorded script,and after the "address.csv" click,The browser window comes up and goes down,No Windows "FileSave" dialog comes up and the QTP shows the error Dialog("0% of dms.php from XYZ-") object is not found,though this object is there in the repository.

Have tried putting the Dialog("0% of dms.php from XYZ-").Exist property.But the "Exist" property is not recognised by the dialog at all.

Any help in this direction is appreciated..

Thanks in advance
J
Reply
#2
Can you try putting wait(2) statement between browser and dialog navigation?
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3


Attached Files Image(s)
   
Reply
#4
Have added required Add-Ins?

Try the same code with descriptive program

Let me knw the result.

Regards
Raj
Reply
#5
Reply
#6
Ankur,Thanks for your time.
Eventually the dialog was visible when I added additional properties to the dialog like title,Name etc...

Thanks
Jen
Reply
#7
Jennifer, I am not able to get this done at my end even if i add additional properties. Would be helpful if you could detail it out. For me the explorer is not staying at all.
Thanks in advance.
Viren
Reply
#8
Viren, Jennifer,

Even I have tried various suggested techniques, like descriptive programming, Virtual objects, adding more properties to the Dailog, but none of them worked. The second browser is not staying open, and QTP fails on the Browser(B).Dialog(File Download).WinButton(Save).Click line.
Have you found a solution to this problem, and if so how did you do it?

Ajay
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Exist and Visible Are True When Objects Aren't There - Is there A Better Way? zunebuggy 3 4,105 04-24-2018, 02:12 PM
Last Post: Ankur
  [UFT] [WPF] DataGrid: check if vertical and horizontal scrollbars are visible robertosalemi 0 2,791 07-13-2016, 06:33 PM
Last Post: robertosalemi
  Extract and save a file from zip folder using VB Script karthicksri07 1 7,018 06-29-2016, 02:19 PM
Last Post: Ankesh
  Intermitent "Object not visible" error erodpr 5 4,562 01-14-2016, 10:55 AM
Last Post: vinod123
Shy 5 Save button QTP Qtpnew 1 2,872 09-03-2015, 09:52 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 3 Guest(s)