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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / nadikattu2002@yahoo.com

Using page check points u can check no of links,broken
kinks in a page.

Is This Answer Correct ?    1 Yes 1 No

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

Answer / less than you

Choose Standard check points either from Active screen or from keyword view, a Object selection properties box will appear from there select page (upper most) and click on OK.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.

0 Answers   Patni,


1. In build1 there is a page with two check boxes and a submit button. You have prepared a script for that page and its working fine. In Build 2 the developers have added two checkboxes in the page. Will the script prepared for Build 1 work for Build 2 or not. If yes, why and if No, why. Remember the developers have not touched the object properties of the textboxes in the page.

3 Answers   ADP,


How does quicktest professional identifies the object in the application?

0 Answers  


How we can differentiate between stand alone application and web application in QTP?

3 Answers   Deloitte,


How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.

5 Answers  






write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))

0 Answers  


How to call script1 into script2?

3 Answers  


How to creating an output value using quicktest professional?

0 Answers  


how to parameterizing values from an excel sheet in Quick test professional?

1 Answers  


What are the challenges you faced during you entire life automation ?

0 Answers   Tech Mahindra,


How can I map test requirement to Test Set (multiple test cases)? Under test lab, I have multiple test cases. I would like to map 1 requirement to all test cases under that test set (in test lab)? Currently, I think QC only allow mapping 1 test requirement to 1 test case. Instead I would like to map 1 test requirement to multiple test cases under one test lab.

4 Answers   CarrizalSoft Technologies, DST Global Solutions,


how do u handle an object with out name in our application using QTP 9.2?

0 Answers   CTS,


Categories