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 / trex
Set oLink = Description.Create
oLink("micclass").value = "Link"
Set oPage = Browser("title:=.*").Page("title:=.*").ChildObjects(oLink)
PdfCount = 0
For i = 1 To oPage.Count-1
oPdfFiles = oPage(i).getROProperty("url")
print oPdfFiles
If Right(oPdfFiles,4)=".pdf" Then
MsgBox oPdfFiles
count = count +1
End If
Next
MsgBox PdfCount
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?
hou can we use vb script in qtp could u tell me breafly
How to attach a file to TD?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
What is active screen?
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
Explain the check points in quicktest professional (qtp)?
How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
What does it mean when a check point is in red color? What do you do?
Does quicktest professional is unicode compatible?
after initiating one project for testing, when exacltly QTP tester role starts?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
How is UFT 11.5 version different from UFT 12.0?