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 can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

0 Answers   ABC,


Why do we use breakpoints in QTP?

0 Answers  


What is time parameter?

1 Answers  


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

0 Answers  


What are the general steps involved in the data driven framework?

0 Answers  


What is parameter in qtp?

0 Answers  


Problem with XML checkpoint in QTP ?

0 Answers  


How do you export an output to a excel sheet? Ex: I get my answer by using Msgbox"..." &R. How do I displayed the result of the Msgbox (such as R) to an excel sheet? Please let me know.Thanks

2 Answers   ADC,


What are the recording modes in wave event?

0 Answers  


How can i open 5 multiple browser at once through QTP VB script and i want to login with 5 different credentials i already tried with this code but its entering credentials only for first browser and am using datatable to parameterize

2 Answers  


how to get column count in datatable

3 Answers  


the question was on what techonlogy u been working on i said VB then he asked me the addin for VB in Qtp?

4 Answers   BirlaSoft,


Categories