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
What are class properties?
Mention the rules for using option explicit statement?
What is difference between vbscript and vba?
When to use function procedures and what are its characteristics?
What are lbound and ubound in the vbscript language?
how to check whether link is disabled in QTP??
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
What is the purpose of regexp object in vbscript?
How many types of procedures are available in the vbscript language?
Mention what is the difference between vbscript and vba?
How are values assigned to the variables in the vbscript language?
Why to use option explicit in vb script?
What are the valid scopes of a variable in vbscript?
Explain about the asc function?
Mention what is the use of option explicit in vbscript?