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
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
How can you handle exceptions in qtp?
Whether qtp 9.0 supports Test director8.0
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.
What are the different ways to invoke an application using QTP?
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief
What are the steps involved in recovery scenario wizard?
Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,
How many types of parameters are available in quicktest professional (qtp)?
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
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?
Explain quicktest professional (qtp) testing process?
Explain the checkpoint in qtp?
What are the flaws in water fall model and how to overcome it?
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