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

1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1542


How can you handle exceptions in qtp?

534


Whether qtp 9.0 supports Test director8.0

2120


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

1627


What are the different ways to invoke an application using QTP?

647






how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief

1540


What are the steps involved in recovery scenario wizard?

529


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

1348


How many types of parameters are available in quicktest professional (qtp)?

585


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

1523


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1585


Explain quicktest professional (qtp) testing process?

539


Explain the checkpoint in qtp?

594


What are the flaws in water fall model and how to overcome it?

560


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

2491