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
How QTP support all types of applications (platforms)?
I have qtp 9.5 demo ver,I am not able to record the yahoo broeser.so anyone can tell me what setting i have to do in QTP for yahoo brower recording. why its not recognise the object of yahoo browser????
Hybrid framework supports Descriptive programming. Is it true?
What are the different attributes used with regular expression?
How can you write the scripts that operate on different objects depending on run-time information?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
What test cases can you automate using QTP?
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
How to interact tool & application build in QTP?
Should have experience in framework means?
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
What are the advantages of Object Repository?