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 |
Mention the environments where vbscript could be run?
How to Enter Values on the Command promt using VB script
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
How to create MSAcess table foriegn key
Which operator can be used to check if two numbers are equal or not in vbscript?
What is the use of option explicit in vbscript?
Which date function is used in the vbscript language to find the difference between the 2 dates?
how to retrieve native property value in runtime?
How can the spaces from the string be removed?
i need to login to my yahoo accoutnt using VB Script, automating the operation of webobjects, even launching of IE. How?
What is the difference between vb debugger and the script debugger?
How will you convert a string to upper case string using vbscript?