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

What is the use of the instr function?

0 Answers  


Write a VB Script to count blank Lines in a notepad

2 Answers   IBM,


when we use filter funtiom invb script(QTP)

0 Answers   TCS,


What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>

1 Answers  


Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript

1 Answers  






What are the differences between sub procedures and function procedures?

0 Answers  


write a program to display the system specifications of client system with the help of vbScript.

0 Answers  


Difference between dim,public and private variables in vb script?

0 Answers  


Explain the string concatenation function in vbscript?

0 Answers  


what is fire event method in qtp?

3 Answers   TCS,


Am working with web application. i faced one senario. i.e, webpage having webtable having two coloumns, in that first coloumn is for serial no and second coloumn is for mac address link, now i want to get first row second coloumn value, that having macaddress as link. Please help me how to get that link?

2 Answers  


Diff between web table ,datatable and data base (QTP)

2 Answers   TCS,


Categories