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

Hi all , I am new at QTP I want a sample script to check validation messages(For java script or VB script) for login page with for web based application.. Any one can Help. I have to complete it in two days I need urgent help.. Ex. if I want to check mail.yahoo.com 1 > If user doed not exist it display "Username does not exist" 2> if invalid Uname and password then it display" Invalid Uname or pass" 3> Loing Sucssessfully. I want to check this types of application by using data table to give values of username and password.. Thanks

2 Answers  


How did you achieve reusability via QTP?

1 Answers  


How to handle Recovery scenario in QTP. give detailed explanation about recovery scenario.

1 Answers  


How do you start automating/ writing your QTP scripts ?

3 Answers   Keane India Ltd,


What is the use of Debug Viewer?

0 Answers  






Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in the below string "john" could any one explain me? Is there any function for that?

4 Answers   Livetek,


How to record objects of Windows taskbar

2 Answers   RoboSoft,


What are the file extensions for per-action, shared object repository files and what is the extension for library files?

4 Answers  


what to do if application have 3 "ok" button with same logical name and same properties, how qtp can identify them.

11 Answers   Infosys, Intel,


Think and Reply.. can we parameterize radio buttons, check boxes? as in flight web site on flight preference page, choosing different flight produces trouble if from port and to port been parameterize, and runs. Try it by own you will get the error.

3 Answers   Patni,


How to get popup error message.

0 Answers   Tech Mahindra,


What is Data driven Testing Frame work.Anybody can expain it in Detail.. Pls anybody can give the answer.. Thanks in advance...

1 Answers   Navis,


Categories