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 output values and why they are used ?
Is it possible to change the values of analog recording?
Why script error occur in between recording in qtp?
How do you convert manual test cases to automated test cases?
What is action? How many types of actions are there in qtp?
By using QTP can we record any log files written by the application which is in execution?
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?
How to find operating system information using the qtp script?
Explain runtime dynamic settings?
Explain the concept of how quicktest professional identifies object?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
what are the challenges you have faced while testing web based application using the automation tools ?
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp
How many types of recording facility are available in quicktest professional?
What r the different filters in defect in quality center