How to find the number the number of Links, Brolken Links
in a webpage?

Answer Posted / rayudu

By using childobject method


Set linkDescObj=description.Create()
linkDescObj("micclass").value="Link"
Set Links=browser("Gmail: Email from Google").Page("Gmail -
Inbox -srikrishna").ChildObjects(linkDescObj)
NoOfLinks=Links.count()
msgbox NoOfLinks
For i=0 to NoOfLinks-1
linkName=Links(i).getROProperty("name")
msgbox linkName
Next

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the technics follow in writing VB script?

1529


How will you check a web application for broken links using qtp?

550


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1310


Tell me about your project? please help me how to tell about insurance project

1531


What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this

1401






How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1570


Explain the new feature of UFT regarding the export of test results?

576


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

581


hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.

1426


The hybrid framework can be implemented for any application. Is it true?

585


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

701


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1681


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1732


Can any one send me the QTP Basic Coding Samples?

1612


How to find operating system information using the qtp script?

583