Write a QTP script to print all the link names displayed in
a web page

Answer Posted / siba

set linkObj=description.create()
linkObj("micclass").value="link"

set linkChildObj=Browser("Google Accounts").page("Google
Accounts").childobjects(linkObj)
childCount=linkChildObj.count
msgbox(childCount)
for i=0 to childCount-1
linkName=linkChildObj(i).getROProperty("innertext")
print( linkName)
next

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1527


How to handle dynamic objects in quicktest professional?

503


What is the process of synchronizing qtp and aut?

568


What is the use of Debug Viewer?

1490


What is the use of sendkeys and what are send keys

1953






tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

1528


I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

1724


I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”

586


How to capture a window in QTP?

1530


how to disable the pop ups through QTP using a script

1729


What are the different types of recovery operation?

555


How to use conditional loops in qtp ?

589


Which functionalities of QTP used in banking project? pls any say answer?

1446


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?

2740


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

1657