QTP - windows 'File Save' Dialog not visible - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: QTP - windows 'File Save' Dialog not visible (/Thread-QTP-windows-File-Save-Dialog-not-visible) |
QTP - windows 'File Save' Dialog not visible - jennifer - 03-14-2009 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 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 RE: QTP - windows 'File Save' Dialog not visible - Ankur - 03-15-2009 Can you try putting wait(2) statement between browser and dialog navigation? RE: QTP - windows 'File Save' Dialog not visible - jennifer - 03-15-2009 Hi ankur, Tried it as written below.No sucess.No dialogs come up and qtp shows an error message "Dialog("0% of dms.php from www.orange-")" not there. Code: Browser("Personalized Start Page").Page("Orange Shareserve 3.6").Frame("mainFrame_4").Link("address.csv").Click Have observed another thing.Please see attached image. While recording this application,after I get the "FileDownload" dialog ,and If i move this dialog I could see the other " Dialog("0% of dms.php from www.orange-")" just behind it.... Could that be the problem.... Waiting for your Reply Thanks J RE: QTP - windows 'File Save' Dialog not visible - Rajashekar Gouda - 03-16-2009 Have added required Add-Ins? Try the same code with descriptive program Let me knw the result. Regards Raj RE: QTP - windows 'File Save' Dialog not visible - jennifer - 03-16-2009 I even found that removing all the dialog related code after the following statements doesnt bring up the dialog. Code: Browser("Personalized Start Page").Page("Orange Shareserve 3.6").Frame("mainFrame_4").Link("address.csv").Click The dialog as in script is Dialog("0% of dms.php from www.orange-"). But if one look at the dialog name in the image,the name is much longer than what is there in the script... Just some observations RE: QTP - windows 'File Save' Dialog not visible - jennifer - 03-17-2009 Ankur,Thanks for your time. Eventually the dialog was visible when I added additional properties to the dialog like title,Name etc... Thanks Jen RE: QTP - windows 'File Save' Dialog not visible - Virendra - 09-28-2010 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 RE: QTP - windows 'File Save' Dialog not visible - theajaykumar - 06-02-2013 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 |