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



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

Answer / 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

More VB Script Interview Questions

There are 5 web pages.write a script to click the button on 4th web page.

0 Answers   Accenture,


Explain the .wsf files?

0 Answers  


How to return a value from function...? you should not tell msgbox, print.. etc.,

6 Answers  


reverse the string without using reverse string?

2 Answers   CSS Corp,


Does VB/Win make standalone .EXE files?

0 Answers  






Explain about tristate constants?

0 Answers  


who will create the object?

0 Answers   Estuate,


How will you get a combined string from array of string in vbscript?

0 Answers  


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

0 Answers   College School Exams Tests,


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?

0 Answers  


Which constant is used for print and display functions and works as same as pressing enter key?

0 Answers  


write a vb script to display ***** ***** ***** ***** *****

4 Answers  


Categories