how can i count the number of links???

Answer Posted / raju

Using child objects we can count the links. script is as
given below

SystemUtil.Run "www.hdfcbank.com"
Set aa=description.Create
aa("html tag").value="TD"

set bb=Browser("name:=HDFC Bank.*").Page("title:=HDFC
Bank.*").childobjects(aa)
cc=bb.count

msgbox cc
For i=0 to cc-1
bb(i).highlight
Next

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we run multiple QTP scripts one after the other without manual intervention? How?

798


When do go for loop condition in test?

855


What is the difference between run time object and test object?

796


can u explain relative path architecture framework in qtp?

1779


how to create flat file datasubmission in qtp

2213


What is test object model in quicktest professional (qtp)?

768


Hi All, How to Compare two strings character by character in QTP

1251


Explain the difference between call to action and copy action?

730


How would you export a script from one pc to another in qtp?

884


How you can make an action as re-usable action?

882


how will you load the test cases in ddt?

1829


How to add verification steps to tests?

9448


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

2049


What are the differences between table and db checkpoints?

751


How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

1723