Pls anyone, tell me the script in QTP to find the number of
links, and images in a webpage. Verry very urgent. I
shall really be very thankful
Answer Posted / hemakumar.m
'For Links
Dim oLinkDes
Set oLinkDes=Description.Create()
oLinkDes("micclass").value="Link"
a=Browser("title:=.*").Page("title:=.*").Childobjects
(oLinkDes).Count()
Msgbox a
'For Images
Dim oImageDes
Set oImageDes=Description.Create()
oImageDes("micclass").value="Image"
a=Browser("title:=.*").Page("title:=.*").Childobjects
(oImageDes).Count()
Msgbox a
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
How you are developing the script? Using record and play back or manual?
What Folder Structure following in Keyword Driven Frame work?
I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?
What is the significance of “action 0” in qtp?
How many types of recording facility are available in quicktest professional (qtp)?
Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...
How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
how can i call function (which has link with excell sheet at a remote location) within another function
How to use setroproperty?
How many lines of code in each script of QTP?
How you can decide which type of object repository you have to use?
How to write business scripts using object repository with different scenarios
How many types of parameters are available in quicktest professional (qtp)?
Explain the concept of object repository and how quicktest professional recognises objects?