Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are benefits of qtp?

1049


how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel

2325


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

971


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

2540


what is the advantages and disadvantages of using functions instead of re usable actions

1884


Get the count of files of similar types from a folder.

1420


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.

2239


How can you exit from an action?

997


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3489


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

2003


Explain actions in qtp ?

917


how can we compare descriptive programing with a regular expression

2335


Write a script to verify font style and color of a windows object using descriptive programming

1319


What is CMMP and CMMH?

1105


What are the trigger events in qtp?

1048