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
What is the difference between run time object and test object?
In qtp, how you can remove the spaces from string?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
How to associate function library at a run time?
i need qtp tutorial. pls send it to sridhar.k151@g mail.com
How qtp identifies objects?
Diff b/w Health care domain and Banking Domain?
What is debugging? How you debug your script?
How the exception handling can be done using quicktest professional (qtp)?
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
Object repositories types, which and when to use?
banking domain description for software tester for interview
What is parameter in qtp?
How is UFT 11.5 version different from UFT 12.0?
What are the flaws in water fall model and how to overcome it?