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 / venkatesh.m

Hi friends,

set odesc=description.create()
set odesce("htmltag").value="a"
set lists=browser("b.name").page("p.name").childobjects
(odesc)
set counter=lists.count
msgbox "total no.of links"& counter
for i=0 to counter-1 step 1
set link=lists(i).getroproperty("name")
msgbox link,0,"curren link is"
Next


The above script works correctly.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how Does Run time data (Parameterization) is handled in QTP?

991


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

1156


what is ODC and GDC?

7845


What are the things(properties, and other details) will be recorded while recording an object using normal recording?

1951


What is the short cut keys for the following?

1082


why text area checkpoints cannot used for web applications

2347


What do you to script when objects are removed from application?

1038


When Recovery scenario actually starts while testing the application?

2002


what are the limitations of smart identification in qtp 9.0

2341


how u will evaluate the tool for test automation?

1826


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

1987


How to use the object spy in quicktest professional (qtp) 8.0 version?

926


What are the properties you would use for identifying a browser and page when using descriptive programming?

992


What is the latest version of qtp?

1068


How software automation specialist enter steps in the Expert View?

2100