How to get Links count in an web application,without
descriptive programming?
Answer Posted / kalyan
'Hi, we can use "innertext" as a unique property of link.
'Name may be changes in the runtime. And we can use the
index number to identify the link in the execution.
(NOTE:-We dont use index to retrive the child objects.why
because each child object have different index number.)
TRY THIS CODE:--------THIS WIL WORK FINE.
set olink=description.create()
oDesc("micclass").Value = "Link"
set chobj=browser().page().childobjects(olink)
n=chobj.count
msgbox n
for i=0 to n-1
val1=chobj(i).getroproperty("innertext")
msgbox val1
Next
Any doubts----mail to------ mskalyan.smile@gmail.com
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
What is checkpoints for quicktest professional?
What is method name to compare two XML files.
wt is the use of multiple questions in QTP
What is qtp window?
How many types of recording modes in the qtp?
What are the features supported by UFT?
How to break the object spy ?
What are the types of object repository?
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
what is description object?
what could go wrong with test automation?
What are the different types of recording modes in qtp? Which will be used when?
Explain object spy in qtp.