03-14-2009, 09:05 PM
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:
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
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