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

Mention the environments where vbscript could be run?

0 Answers  


How to Enter Values on the Command promt using VB script

0 Answers  


I'm new to QTP, i facing a a problem in the script says"Object not found", "Browser("").page("").frame(Name:=fminfo).webtable(). the issue is, QTp is not able to identify the web table in run time.becuase in that fram"fminfo" there are "n"table and the table do not have the names,Html id. 1) i need to count the number webtables available on that page. 2)need to identify the webtable cell values. 3)How Loop the once i get the count and retrive the cell data of each webtable? Can anyone help on this, plz.. Thanks, Suresh

3 Answers  


How to create MSAcess table foriegn key

1 Answers  


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

0 Answers  






What is the use of option explicit in vbscript?

0 Answers  


Which date function is used in the vbscript language to find the difference between the 2 dates?

0 Answers  


how to retrieve native property value in runtime?

1 Answers   Hexaware,


How can the spaces from the string be removed?

0 Answers  


i need to login to my yahoo accoutnt using VB Script, automating the operation of webobjects, even launching of IE. How?

1 Answers   Mphasis,


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

0 Answers  


How will you convert a string to upper case string using vbscript?

0 Answers  


Categories