How to get Links count in an web application,without
descriptive programming?
Answer Posted / a
POSTED BY -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
--------------
This code is not working.
Check it out.
Link = Objec(i).GetROProperty("micclass")
Error is here.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
Is it possible to change the property value at runtime? How it is possible?
Is text area check point supports for web applications?
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
What is difference between run time object and test object?
What are the ordinal identifiers in web page?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.
How to use the object spy in quicktest professional (qtp) 8.0 version?
Explain measuring transaction.
How to Test the mainframe application?
what function you write to do database testing with the help of qtp?
what are all the fileds present in object repository?
What is the diff between image and bitmap check point?