Use FSO object and verify the existence using Timestamp. Sent from BlackBerry® on Airtel
-----Original Message----- From: [email protected] Sender: [email protected] Date: Tue, 6 Aug 2013 17:36:46 To: <[email protected]> Reply-To: [email protected] Subject: how to validate document name (pdf, doc, ppt) in QTP 11 and IE9 I have script developed to test pdf, doc or ppt file name as below. *Browser*("Browser Name").*Page*("Page name").*link*("link name").*click* *wait*(2) * If* *Browser*("name").*Dialog*("File Download").*Exist* Than *PDF_Name*= Browser("name").*Dialog*("File Download").*Winobject* ("ObjName").*GetROPropert*y("text") * If* *PDF_Name* = "generaltutorial.pdf" Than *Reporter.ReportEvent micPass.* "pdf exist Now my question is This was the script developed in IE8 where there was FILE DOWNLOAD dialog box. and from that we can get PDF Name. Now I am migrated to Win 7 and IE9 In IE9 there is no FILE Download dialog box and there is a notification at the bottom of page. How to get PDF name from it? Is there any other method to validate name of pdf? Help appreciated Thanks Dhaval -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
