Write a QTP script to print all the link names displayed in
a web page
Answer Posted / xyz
set linkObj=description.create
linkObj("micclass")="link"
set linkChildObj=B().p().childobjects(linkObj)
childCount=linkChildObj.count
for i=0 to childCount-1
linkName=linkChildObj(i).getROProperty("innertext")
msgbox linkName
next
| Is This Answer Correct ? | 52 Yes | 10 No |
Post New Answer View All Answers
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 test object model in quicktest professional?
Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.
What r the different filters in defect in quality center
What are the various automation frameworks available in qtp?
Hybrid framework supports Descriptive programming. Is it true?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
How to recognise the webelement and verifying that webelement is enabled?
What are the different types of qtp test assets and their extensions?
How will you check that your test cases covered all the requirements?
Where to use Property Let, Property Get, Property Set in UFT
What is the latest version of qtp?
Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?
How to modify object property in qtp ?
Explain how you can delete excel file in qtp?