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

Pls explain me the difference between ........ Description.Create and CreateObject

5 Answers  


Hi Friends, I have an application that is having some options to choose. While doing business transaction I need to select one option among from available options. But here the thing is, we won't get one option which we've chosen already and the available options will get automatically from the system with time basis, moreover each and every option having with various label names respective to that option. So obviously if I run my recorded script will automatically gets fail, even though it got pass at first time. Could anyone please give me appropriate solution for this. I would be greatly obliged with you if you give the solution as soon as possible.

1 Answers   Zensar,


Is it possible to call out to Java from QTP?

2 Answers  


Write a command for setvalue function in a webedit

3 Answers   Wipro,


Explain about invoking of application?

2 Answers  


using descriptive programming how to close all opend browsers?

7 Answers   Satyam,


what is difference betweem class annd object?

1 Answers  


If u don't have any Knowledge on perticular application but they give that application to u for Testing ? Then How we wil move towards testing on that application?

16 Answers   Genpact, HP,


Can any one please list me out the shortcut keys for some functionalities in the QTP .. for example ..to record...to run...etc

6 Answers   Keane India Ltd,


I am struggling to understand QTP more from descriptive programming point of view. Is it easy to learn good QTP in South india by good faculty than north india? I found a great lack of institution in here. can you suggest me better instituion. I am holding two years of experience in same company, is there possibility in south india for me?

1 Answers  


how to write scripts in QTP?

4 Answers   Ordain Solutions,


Write Descriptiv prg 4 login logn....txt bx password---txt bx ok---btn

2 Answers   Hewitt,


Categories