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 |
give me the code to save all messages of inbox of gmail into a folder and notepad
I am using environment variable xml to give credenatials for login into unix. Is there any way we cam mask the password in the xml?
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab1"" value=""Save"" type=""button"">", Second button "html id:=btnSave "outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button"">", Third button "html id:=", outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab Fourth button "html id:=btnSave outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button"" 5th button "html id:=", "outerhtml:=<input class=""Button"" onclick=""document.getElementById('a5').click();"" value=""Save"" type=""button"">",
what is the defference between calling ation and called action?
what is a good testcase?
what is the Command used to start the QTp from Run.
how to write vbscript on web applications in qtp. explian with one example?
Hi Guys, here I am posting one question. Wen u r working with Notepad. If it is not responding in the middle of TEst...what u will do.
What is the difference in testing a client-server application and a web application?
I heard that in Hyderabad Ameerpet is renowned for its training institutes it has , but from my own experience I can only say that this institutes have become money making machines losing their cognitive ability and ethics , can anybody tell me is there a good ins. in hyderabad for testing tools.?
how to identify the user defind varibles? plz tell me
why we use environment variables