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 / 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


Please Help Members By Posting Answers For Below Questions

how do u plan test automation?

1973


if mandatory and Assitive propertys are shows same how will u write skript in QTP window

2135


Define virtual object?

1234


How to execute a winrunner script in quicktest professional?

1080


terminal services client

2320


How does you pass optional arguments in qtp?

1090


What is the difference in testing a client-server application and a web application?

1173


i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji

2163


What are the different types of recording modes?

1074


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.

2626


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

1999


What are the differences between table and db checkpoints?

1075


How you can make an action as re-usable action?

1183


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3762


How did you use regular expressions in QTP and also in WR?

2693