how to display all the links in one page using vb script in qtp.

Answer Posted / sowmya

We can use the page check point to display the number of
links in a web page

or

we can create the child object

set objlink=description.create()
objlink ("micclass").value='weblink'
set odesc=browser("browser").page("browser").childobject
(objlink)

numberoflinks=objlink.count

msg numberoflinks


i think it should work.....

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

1568


What are the uses of vb script?

587


What is vbscript?

600


What is the difference between vb debugger and the script debugger?

588


Explain the .wsf files?

533






How will you check that a variable is an array in vbscript?

544


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1539


why variable name should not exceed 255 characters?

1819


Explain sga memory structures?

579


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2589


how to increasing the numbers in a given text box please write a vb script

1704


Explain How do you create a recordset object in vbscript?

566


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

3553


Which operator is used to concatenate the 2 values in the vbscript language?

558


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1493