Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I came across Good question ..... Write a script to only
download pdf's if there are 20 links on a page. Kindly reply
these type of questions are pretty challenging..

Answer Posted / harsha

dim objIE
Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible=true
objIE.Navigate "your url"
Set ObjDoc = objIE.Document
objhref=objdoc.documentElement.getElementsbyTagName
("a").item(0).href
if (Instr(objhref,".pdf")>0) then
objdoc.documentElement.getElementsbyTagName("a").item
(0).click
End if
This will download the pdf doc into the current opened
browser.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is business process testing(bpt) in qtp?

1197


Explain features of the latest version of qtp/ uft 12.1?

1118


What are the different types of recording modes in qtp? Which will be used when?

1118


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

2153


How many add-ins comes by default with quicktest professional (qtp)?

1079


What does mean by Scope of Automation?n How we defined it?

2111


Generic function to search for the unique link in webtable and click on it

3116


How will you declare a variable in qtp?

1061


Difference between action & Reusable action?

1121


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3622


after click on compose mail how can we attached a file in qtp with vbscript code

2233


What r the different filters in defect in quality center

3815


what is meant by source control?

2229


can the activities of test case design be automated?

1945


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

2120