There are some links on the web page,write a script to
count and click those links and check the text on the page
displayed on clicking the links.
Answer Posted / preethi
Set obj=Description.Create()
obj("micclass").value="Link"
Set links=Browser("Gmail: Email from Google").Page("Gmail: Email from Google").ChildObjects(obj)
countLinks=links.Count
msgbox "Num of links"& links.Count
For i=0 to countLinks
'links(i).click
text= links(i).GetROProperty("Text")
msgbox text
'Browser("Gmail: Email from Google").Page("Gmail: Email from Google").ChildObjects(obj).
next
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain different recording modes?
what r the main attributes of test automation?
Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...
What is the use of running the scripts in Hidden-mode in UFT?
Does QTP record on Objects created on XWindows Environment?
What is QTP’s model for test creation?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
What is the parameterization?
How will you test a keyboard?
What are the types of properties that quick test learns while recording?
How to export quicktest professional (qtp) results to an .xls file?
Explain the difference between call to action and copy action?
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
What contains Data Driven Framework document in qtp?