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

What are the Application Functions available in QTP?

1473


What is the default object synchronization timeout in qtp?

639


What is a recovery scenario?

567


Hi, how can we check or avoid the memory leakage in QTP9.2?

1698


How many tabs are available to view your test in a test pane and what are they?

560






How to explain a banking project in interview as a test engineer???

2591


What are the features of quick test pro(qtp)?

527


What is the descriptive programming?

1511


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1424


i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.

1379


Is the qtp course will help to create a virtual object?

1514


How to create runtime property for an object?

1445


What is QTP’s model for test creation?

671


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3269


What are the steps involved in recovery scenario wizard?

521