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
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 |
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 |
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 |
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 |
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 |
what is frame work of qtp?
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement
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?
what is the defference between calling ation and called action?
in my application,validation message has in japanise language.how to validate this message is appears properly or not
hai,i want to select an option from the right click pop up menu.but the qtp is not recognizing the right click pop up menu as a seperate object.can any one tell me the solution.
DEFECT LIFE CYCLE,WHO PUT THE STATUS AS OPEN
What are SetToProperty, SetRoProperty, GetToProperty scripting?
How to supress warnings from the "Test results page"?
write the vb script for call to new action in qtp?
I want to run my qtp scipt on the system where qtp is not installed .I don't want to install qtp but i want that system should use the qtp from another system in lan just the qtp instance should be launched on that system without having qtp installed on it .I probably know the solution that it will be solved through RMI but how to get this problem solved plz help i anyone know the answer
What is Automation frame work.How we will prepare in real time.