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 can i call an external action,which is not added external action of an action?

2 Answers   Ordain Solutions,


how to write regular expression for Date field?

12 Answers   Google,


What is checkpoints for quicktest professional (qtp)?

0 Answers  


I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.

0 Answers   Cap Gemini, TCS,


what is automation(qtp)bug pls giv me one ex?

1 Answers  






actually how many hours per one day we will work on automation (qtp) in real time

1 Answers   Synechron,


How u perform Batch Program in QTP?

3 Answers  


After creating testcases, how do you start testing in QTP? what methodology will follow?

7 Answers   Actran, American Well,


What is the difference between two actions?

1 Answers   Wipro,


Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same? ok but why descriptive?(only for w/o application)

2 Answers   IBM,


How to add a page checkpoint to your test?

1 Answers  


Can any body please tell me the steps of keyword driven framework of QTP.

0 Answers   TCS,


Categories