How Exactly we can find out the INDEX No. of any object of
an application when we test that application in QTP? Explain
this by giving me the example of all LINKS of G-Mail
(including home page, User-account page and all possible
pages you ever seen in G Mail)?????? and if your answer is
that as per appearance of objects(LINKS) in application we
can find out the index number in application then tell me
how you find out which object(LINK) having INDEX No. 1,2,3
and so on and how you say which object(LINK) is appeared
first and which is last?
Answer Posted / udham
Hi
I also faced the same question .i tried hard 2 find the solution but didn't get anywhere .i tried many times with QTP.
This is the solution which i get.
this will tell u the index no. at execution time.
This is not the exact answer .this is called programming jugad.
set c = description.create
c("micclass").value = "Link"//i m using link only .u can use any other object type also.
set obj = b().p().childobjects(c)
msgbox obj.count //will give the count of all links on page
for i = 0 to objcount-1
b().p().link("index:="&i).highlight//this will highlight the link with index no 0 in the application as initiallly the value of i is 0.
msgbox i //printing the value of index
next
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
How you create new action in qtp?
how u will evaluate the tool for test automation?
How did you use regular expressions in QTP and also in WR?
What is the quicktest professional testing process?
How to release all resources file from the QTP?
How to use Environment parameterization? Explain with an example.
How we can import data from database?
What is 'sleep' in sync point?
How to handle the exceptions using recovery secnario manager in quicktest professional?
How to give a call to another action from one action?
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
Explain the parameter in qtp?
Diff b/w test scenario's and test Procedures?
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?