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...


In a yahoo web Application there are 65 links.one day it
will opens 50 links and another day it will open 55
links.In this scenerio write Descriptive programing for
Automation?....Pls write the code for this scenerio.



In a yahoo web Application there are 65 links.one day it will opens 50 links and another day it wi..

Answer / gaurav anand

for that page, use description.create() to get an object and then use that object to assign a "micclass" value i.e. in this case is links. then, count the no of links using count(). then store this in a variable and use a for loop to work on these links.

set a = description.create()
a.("micclass").value=links
for(i=0;i<a.count,i++)
set b= browser("").page("").childobjects(a)
-----use b as an object to do whatever you want to do on a link-----
next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How to supress warnings from the "Test results page"?

4 Answers  


Synchronozation types in QTP

11 Answers   Diebold,


object types is used for what?

1 Answers  


what is Business Process Testing plz explain?

7 Answers   iFlex,


What are the technics follow in writing VB script?

0 Answers   CTS,


Hi Friends, while playing the recorded test i am getting this error "Cannot identify the object "q" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application." error is coming in this line of code "Line (2): "Browser("Google").Page("Google").WebEdit("q").Set "airtel broadband"". " .... please tell me how to overcome this problem. need help asap... Thanx in advance

3 Answers  


Can you tell me QTP is support for GIS(Geography Information System) Based Software.

1 Answers  


what is flag=0 in qtp tool.. i am strugglin to use flag function , exactly when it is used , any real time expert pls explain clearly?

1 Answers  


What is the difference between Accessibility Checkpoint and Bitmap Checkpoint in QTP? Note: I have read it in QTP help but i dont want answer from that.......

1 Answers  


What is Unicode Compatibility?

0 Answers   HCL,


WHAT IS THE FUNCTION (HOW TO DO) THE BATCH TESTING IN TEST DIRECTOR USING MANUAL TESTING PROCEDURE?

1 Answers   CTS,


hi nani my doubt is how does qtp process metrix related to software process.

0 Answers  


Categories