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
What are the differences between qtp and winrunner?
How to use the object spy in quicktest professional 8.0 version?
What is the file extension of the code file in qtp?
What is synchronization? What are the ways you can synchronize?
Explain the concept of how quicktest professional identifies object?
Explain different types of action in qtp?
How will you declare a variable in qtp?
Generic function to search for the unique link in webtable and click on it
what is the structure for the data driven framework
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
What is the meaning Work bench?
How to run a test using quicktest professional?
What is the diff between image and bitmap check point?
how u will evaluate the tool for test automation?