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
What is throw object?
What is the use of ordinal identifier in qtp?
How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)
Explain qtp(quick test professional)?
What is qtpro? What is a quick test professional?
what is review
How to use parameterization in qtp?
Explain advantages and disadvantages of ddf?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
How many types of object repository in qtp?
Does quicktest professional is unicode compatible?
What is data driver in qtp? Where we use it?
How to get Traceability matrix from TD?
What is action split and the purpose of using this in qtp?