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
How to pass argument by reference to a function in vbscript?
How are comments handled in the vbscript language?
Which data type/types are supported by vbscript language and what are their specialties?
How to assign a date value to a variable?
Which date function is used in the vbscript language to find the difference between the 2 dates?
Description.Create
What purpose does ‘on error resume next’ serves?
How will you get the smallest subscript of an array in vbscript?
If else for do while select in vb script?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
Write a Script for ATM in QTP
How will you convert a string to lower case string using vbscript?
What is the use of the recordset object and which statement is used to create such an object?
How can you create an object in vbscript?
How to make sure that items in a wintree are sorted al?