I am trying to write a descriptive program for clicking on
a perticular link.For that i wanted an index or location of
that object.But when I viewing through spy, There was no
index property of that object.What to do for getting index
value.How can I get index? please any one let me know.

Answers were Sorted based on User's Feedback



I am trying to write a descriptive program for clicking on a perticular link.For that i wanted an ..

Answer / honey

Index of an object will be caputured only via OR and it
will not be displayed when spying the object through object
spy.So, add the object via OR and then write DP.
But for writing DP for a link, HTML tag and innertext of
the link properties can also be used.

Is This Answer Correct ?    2 Yes 0 No

I am trying to write a descriptive program for clicking on a perticular link.For that i wanted an ..

Answer / nagesh

index value of object is getting appeared only when more
than one object exist in the application with same property
name.

Example: suppose we have 3 list boxes with same name(text)
as property.then qtp identifies these objects with reference
to index values as index=0,index=1 and index=2.

Is This Answer Correct ?    1 Yes 0 No

I am trying to write a descriptive program for clicking on a perticular link.For that i wanted an ..

Answer / ram

Hi Rentala,
Thanks for your suggestion.OR can not add extra objects
which are not being displyed in spy.I wanted to know how
should we enable Index or Location properties in Object
Identification process.

Is This Answer Correct ?    0 Yes 0 No

I am trying to write a descriptive program for clicking on a perticular link.For that i wanted an ..

Answer / rentala

What i can suggest is Add that object to the OR then
automaticlly index is captured.Later delete Or and write DP.

Is This Answer Correct ?    0 Yes 1 No

I am trying to write a descriptive program for clicking on a perticular link.For that i wanted an ..

Answer / sreedhar reddy.m

hi

The index & Location u can't see in OR

If u consider index, it will generate the numbers based
horijontal view

for Examle

if u want to click Home link this no is o incase of index
property

Browser("browser").page("page name").link("index:=0").click

like this way

index will generate the num based on horizonatl view of
objects it will start from 0.

in case of location it will generate the num based verticle
view of objects

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

How to capture the text from the application using QTP?

3 Answers  


what is the difference between testing and debugging?

2 Answers  


Hi, How to export the Checkpoints and Output values(Test area output values) from Object Repository to Excel

3 Answers   Wipro,


There is web page with the webtable,this contains some data, how do you manipulate the data.

2 Answers   Tech Mahindra,


How to get popup error message.

0 Answers   Tech Mahindra,


which tpye of exceptions mostly do we face in QTP

2 Answers  


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

0 Answers  


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

0 Answers  


How many types of parameters are there?

0 Answers  


What is quicktest professional window?

0 Answers  


What is the meaning Work bench?

0 Answers  


How to capture screenshots of Exceptions/Errors during run- time?

12 Answers   Ordain Solutions,


Categories