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

How you can call vbscript functions?

583


How to get the length of the string by making use of the string function?

576


How will you get the smallest subscript of an array in vbscript?

823


What if you do not specify anything when you call a procedure?

544


Which operator can be used to check if two numbers are equal or not in vbscript?

658






How will you convert a given number to long in vbscript?

496


What is the use of the recordset object and which statement is used to create such an object?

535


Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards

2268


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

2595


How to declare an array in vbscript?

676


Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function

1923


Mention the rules for using option explicit statement?

487


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1733


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

549


what is the object hyrarchy in QTP for a web based application

1894