Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Download Files from AUT using QTP script
#3
Not Solved
Hi Thanks please find the code below

Code:
systemutil.Run "C:\Program Files\Internet Explorer\iexplore.exe"
Browser("title:=about:blank").Navigate "about:blank"
Browser("title:=about:blank").Navigate "http://www.9th-direction.com/?p=233"

Set oLinks=Description.Create()
oLinks("micclass").value="Link"


set oAll=Browser("Software Testing Tutorial").Page("ISTQB Question Dump |").ChildObjects(oLinks)
cnt=oAll.count

'print cnt

For i=0 to cnt-1

  print oAll(i).Getroproperty("name")

  If oAll(i).Getroproperty("name")="ISTQB Sample Question Paper Dump 1" Then
   msgbox "Match Found"&i

   oAll(i).click

   exit for
  End If

Next

I am trying it on sample website..
http://www.9th-direction.com/?p=233
on this web site there is link ISTQB Sample Question Paper Dump 1
it is pdf file, when i reach here on the ie explorer there is popup blocker and i am not able to download the file.

I have tried it using send key method on dialog box of download, but @ rntime there is issue with ie explorer.
SO how to handle such scenarios.

Thanks,
Reply


Messages In This Thread
RE: Download Files from AUT using QTP script - by qtptest - 10-27-2012, 10:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT does not recognize IE9 download bar akilamurugesh 1 3,612 02-11-2015, 08:43 PM
Last Post: Kirill
  Download of results in QTP v11 jason.hofmann@auspost.com.au 1 2,707 09-04-2012, 11:13 AM
Last Post: Ankesh
  How to Download a Excel File, while click on Button in qtp 10.0 branjitk 4 4,811 06-06-2012, 06:01 PM
Last Post: branjitk
  QC OTA to Download QTP script results from QC testLab Gurushankar 0 2,525 01-10-2012, 12:34 PM
Last Post: Gurushankar
  How to find more than one application(AUT) instances are opened. dineshb 2 2,906 09-16-2010, 06:52 PM
Last Post: lotos

Forum Jump:


Users browsing this thread: 2 Guest(s)