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
What are the Application Functions available in QTP?
What is the default object synchronization timeout in qtp?
What is a recovery scenario?
Hi, how can we check or avoid the memory leakage in QTP9.2?
How many tabs are available to view your test in a test pane and what are they?
How to explain a banking project in interview as a test engineer???
What are the features of quick test pro(qtp)?
What is the descriptive programming?
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
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.
Is the qtp course will help to create a virtual object?
How to create runtime property for an object?
What is QTP’s model for test creation?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
What are the steps involved in recovery scenario wizard?