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 / pravesh
Set br=description.Create
br("micclass").value="Browser"
br("title").value="Welcome:.*"
Set pg=description.Create
pg("micclass").value="Page"
pg("title").value="Welcome:.*"
Set obj=description.Create
obj("micclass").value="Link"
Set objv=Browser(br).Page(pg).ChildObjects(obj)
cnt=objv.count
msgbox cnt
For i=0 to cnt-1
msgbox Browser(br).Page(pg).Link("Index:="&i).GetROProperty("name")
print "Index:="&i
print Browser(br).Page(pg).Link("Index:="&i).GetROProperty("name")
Next
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the short cut keys for the following?
how to know no.of mails in our g mail by using vb-script
tell me abt a time when u had to go above &beyind the call of duty to get the job done
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out
who QTP recognizes the object stored in object repository?
What is different command used in command Prompt while using QTP?
Mention what are the different types of recording modes in qtp? Which will be used when?
What are the methods of the TextStream object that are used for reading from a text file?
Explain how you can find the absolute value of the number in qtp?
Explain advantages and disadvantages kdf?
How do we handle run-time errors?
What are the different types of action?
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?