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

How to retrive the property of an object?

5 Answers  


hi Action 1 and action2 if we save it in C:, what folders will be created explain plz

3 Answers   iFlex,


Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks

0 Answers  


How many types of Parameters are available in QTP?

1 Answers  


What is the difference between Systemutil.run and Navigate.

6 Answers   Synechron,






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

4 Answers   iFlex, QA InfoTech,


Which scripting language QTP is using?

6 Answers  


What are the different recording modes?

0 Answers  


can any one give me the doccument how to test aproject developed in java language in qtp can here can we use the general vb scripting or we have to use java script here if we have to ese the java script here can any one send me the manual for it means how to write descriptive programming for it thanks in advance

1 Answers  


What are software testing metrics

3 Answers  


In my QTP script I have a word in notepad that ends in a question mark, for example... "father?" As part of my script I want to delete the question mark. How do you delete a character in notepad?

4 Answers  


How to use checkpoints in qtp ?

0 Answers  


Categories