How to get Links count in an web application,without
descriptive programming?

Answer Posted / raghava

Hi guys
Here we have to use the description object.Its working with
me.Just try it out.



Set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set Lists = Browser("Google").Page("Google").ChildObjects
(oDesc)
NumberOfLists = Lists.Count()
linkcnt = 0
For i = 0 To NumberOfLists - 1
linkcnt = linkcnt+1

Next
msgbox linkcnt

Regards
raghava

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you test a stapler?

601


Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain

1464


Where to use function or action?

672


How to save your test using quicktest professional (qtp)?

603


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

578






To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1448


Explain the views in the QTP GUI?

624


A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

1284


When do go for loop condition in test?

659


How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..

1725


images are dynamically changes how to compare two images with out using the bitmap

2009


What is clean sweep?

1382


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1391


What is fragmentation and paging?

1594


How to handle the exceptions using recovery secnario manager in quicktest professional?

639