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
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 ?
How many types of status are there?
how will you load the test cases in ddt?
Which environments are supported by hp qtp?
What is text/text area checkpoint?
Is it possible to switch between recording modes during a test creation?
What are the common defects found in your project? (in qtp interview)
images are dynamically changes how to compare two images with out using the bitmap
How do you configure QTP AND Test director?
what kind of frame work you used in your last project?
What are the various types of Actions in UFT?
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?
What are main panes available in qtp test browser?
Where can I find and view run-time data table?
How the exception handling can be done using quicktest professional?