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
Is text area check point supports for web applications?
what is the difference between data driver & data driven and driver script?
How u will do versioning in QTP?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
Explain the checkpoint in qtp?
How you create new action in qtp?
Explain step generator in qtp?
Discuss quicktest professional environment?
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
Why qtp the best testing tool?
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
what function you write to do database testing with the help of qtp?
Where to use Property Let, Property Get, Property Set in UFT
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
what is the difference between modular framework & datadriven framework