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 you can call vbscript functions?
How to get the length of the string by making use of the string function?
How will you get the smallest subscript of an array in vbscript?
What if you do not specify anything when you call a procedure?
Which operator can be used to check if two numbers are equal or not in vbscript?
How will you convert a given number to long in vbscript?
What is the use of the recordset object and which statement is used to create such an object?
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
How to declare an array in vbscript?
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
Mention the rules for using option explicit statement?
Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.
How will you check that a variable is an array in vbscript?
what is the object hyrarchy in QTP for a web based application