Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the expert view?

952


What is the limitation to XML Checkpoints?

2011


What is recovery scenario manager? When you go for recovery scenario manager?

1010


How to break the object spy ?

1148


What are the differences between quicktest professional and winrunner?

955


tell me abt a time when u had to go above &beyind the call of duty to get the job done

1895


What are the main differences of qtp and win runner?

1083


Where we use data driver in qtp?

993


Do you know how to connect database? Can you tell me the procedures?

945


What are test settings and global settings?

1041


How many types of recording facility are available in quicktest professional?

1057


how can i call function (which has link with excell sheet at a remote location) within another function

1984


images are dynamically changes how to compare two images with out using the bitmap

2365


Explain types of descriptive programming?

996


can the activities of test case design be automated?

1843