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 are the properties you would use for identifying a browser and page when using descriptive programming?
What are the various types of Actions in UFT?
is there any addin for remedy user application
I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.
What are the Application Functions available in QTP?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
What are the features of quick test pro(qtp)?
what function you write to do database testing with the help of qtp?
you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
what is Property......End Property loop? how to write sript for it in QTP
Differences between quicktest professional (qtp) and winrunner?
Connect to QC using AOM.
Explain the benefits of quick test pro(qtp)?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?