How to get Links count in an web application,without
descriptive programming?

Answer Posted / chaitu

This Script is Helpfull to count the No.of links in a web
page

Step1: Set Objects = Browser("BrowserName").Page
("PageName").ChildObjects

Step2: Objectcount = Objects.count
Linkcount = 0
Step3: For i = 1 to Objectcount-1

Link = Objects(i).GetROProperty("micclass")
If Link = "Link" Then
Linkcount = Linkcount+1
msgbox Linkcount
End If
Next
msgbox Linkcount ' It show total number links

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is text area check point supports for web applications?

535


what is the difference between data driver & data driven and driver script?

2143


How u will do versioning in QTP?

1462


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

2801


Explain the checkpoint in qtp?

598






How you create new action in qtp?

571


Explain step generator in qtp?

651


Discuss quicktest professional environment?

592


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

1446


Why qtp the best testing tool?

568


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

1681


what function you write to do database testing with the help of qtp?

1365


Where to use Property Let, Property Get, Property Set in UFT

378


How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks

2759


what is the difference between modular framework & datadriven framework

1599