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


Please Help Members By Posting Answers For Below Questions

I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?

1767


How many types of status are there?

589


how will you load the test cases in ddt?

1598


Which environments are supported by hp qtp?

598


What is text/text area checkpoint?

564






Is it possible to switch between recording modes during a test creation?

592


What are the common defects found in your project? (in qtp interview)

1619


images are dynamically changes how to compare two images with out using the bitmap

2007


How do you configure QTP AND Test director?

1496


what kind of frame work you used in your last project?

1821


What are the various types of Actions in UFT?

591


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

3596


What are main panes available in qtp test browser?

539


Where can I find and view run-time data table?

526


How the exception handling can be done using quicktest professional?

545