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
how do u plan test automation?
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
Define virtual object?
How to execute a winrunner script in quicktest professional?
terminal services client
How does you pass optional arguments in qtp?
What is the difference in testing a client-server application and a web application?
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
What are the different types of recording modes?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
What are the differences between table and db checkpoints?
How you can make an action as re-usable action?
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
How did you use regular expressions in QTP and also in WR?