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

what is the difference between action and function

11 Answers   AppLabs, BirlaSoft, Infosys,


Explain in brief about the QTP Automation Object Model.

1 Answers   Crea,


How to retrive the property of an object?

5 Answers  


what is difference between normal mode and fast mode?

1 Answers  


what are the disadvantages of descriptiveprograming

5 Answers   GE,






How can you connect the database with QTP?

3 Answers  


After Creation of your QTp frame work, The folders are saved in VSS or Other. plz explain brifly?

3 Answers   Infosys,


I have a 10 lines of qtp script, while executing i got an error at line 7 but i dont want to stop the execution i want to continue the execution up to last line and display the test result window, wts the syntax we use?

3 Answers   BirlaSoft, Collabera,


How do you data drive an external spreadsheet?

1 Answers  


how we do database testing with qtp using descriptive programming?

22 Answers   Nutrins, Rohit Technologies, Symphony, Syntel, TCS,


How to data driven test for Win objects in QTP ?

0 Answers  


now a days which one is using all companies for qtpscript a)Object Repository based script b)Descriptive program based script c)BOTH

1 Answers  


Categories