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


If you are using descriptive programming and you have two
objects with the same name, so you are identiying them by
name and index, how can you avoid errors if a third object
with the same name is added at the begining of the page?

Answers were Sorted based on User's Feedback



If you are using descriptive programming and you have two objects with the same name, so you are i..

Answer / litan

Normally like this Scenario we are not going for
Index.Instead of Index you can use Properties like
innertext with regular expression.
lstrGetcelldata=Browser("micclass:=Browser").Page
("micclass:=Page").WebTable("html
tag:=TABLE","Index:=6").GetCellData(2,2)
lstrCellData=Browser("micclass:=Browser").Page
("micclass:=Page").WebTable("innertext:=Custom
Parameters.*").GetCellData(lintCounter,1)

Is This Answer Correct ?    1 Yes 0 No

If you are using descriptive programming and you have two objects with the same name, so you are i..

Answer / sameena

Index is unique to al. obviously through index only.The
third object property is to be changed accordingly to
diffrentiate the object. such as location of the object in
the application or index value of the application or the
tab count of the object. like wise the modification are
done to the object property to show differentiate with
other object,. if iam correct reply me.

Is This Answer Correct ?    1 Yes 1 No

If you are using descriptive programming and you have two objects with the same name, so you are i..

Answer / kishore

sameena is absolutely correct

Is This Answer Correct ?    0 Yes 0 No

If you are using descriptive programming and you have two objects with the same name, so you are i..

Answer / ankur

am agree with sameena.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Whether it is possible to test the adobe's controls like zoom, resize, save etc using QTP...If yes, how u can do the same?

1 Answers  


how to get the object property

4 Answers   Covansys,


can u explain relative path architecture framework in qtp?

0 Answers   Mindlance,


How to capture data from images in QTP and produce them in Excel sheet ?

4 Answers   iFlex, QA InfoTech,


Explain the features of quick test pro(qtp)?

0 Answers  


i need the word "good morning" to be displayed by default whenver we click upon the blank test while opening the qtp. Could you please answer...

7 Answers  


Anybody wants to learn QTP with realtime implementations and complete framework desiging plz contact to this mail id ciraaj@gmail.com

1 Answers  


1. What is diffrence between Analog Recording And Lomlevel Recording ?

4 Answers  


hw to create a frame work in qtp..what are the basic steps

2 Answers   Infosys,


A web table is having 3 columns(name, salary and checkbox) in qtp How to select a checkbox based on the highest salary of an employee in a webtable.

1 Answers  


Wat is the command used to add an object(properties) to an object repository?

2 Answers   Virtusa,


breef description of batch testing ?

0 Answers   Wipro,


Categories