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
What is the expert view?
What is the limitation to XML Checkpoints?
What is recovery scenario manager? When you go for recovery scenario manager?
How to break the object spy ?
What are the differences between quicktest professional and winrunner?
tell me abt a time when u had to go above &beyind the call of duty to get the job done
What are the main differences of qtp and win runner?
Where we use data driver in qtp?
Do you know how to connect database? Can you tell me the procedures?
What are test settings and global settings?
How many types of recording facility are available in quicktest professional?
how can i call function (which has link with excell sheet at a remote location) within another function
images are dynamically changes how to compare two images with out using the bitmap
Explain types of descriptive programming?
can the activities of test case design be automated?