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
What are benefits of qtp?
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
what is the advantages and disadvantages of using functions instead of re usable actions
Get the count of files of similar types from a folder.
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.
How can you exit from an action?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
Explain actions in qtp ?
how can we compare descriptive programing with a regular expression
Write a script to verify font style and color of a windows object using descriptive programming
What is CMMP and CMMH?
What are the trigger events in qtp?