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

Answer Posted / venkatesh.m

Hi friends,

set odesc=description.create()
set odesce("htmltag").value="a"
set lists=browser("b.name").page("p.name").childobjects
(odesc)
set counter=lists.count
msgbox "total no.of links"& counter
for i=0 to counter-1 step 1
set link=lists(i).getroproperty("name")
msgbox link,0,"curren link is"
Next


The above script works correctly.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain QTP using different development techniques ?

542


How does you pass optional arguments in qtp?

565


what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

1646


Is qtp supports uni-code?

618


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

2672






What is the difference between analog and low level recording?

626


What is optional step in qtp? How you can add optional step in qtp?

537


Will down time for server and content maintenance/upgrades be allowed? how much?

617


In qtp, how you can get the last character from a string?

558


How you can write contexts to text file in qtp?

594


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1496


who QTP recognizes the object stored in object repository?

1667


How the smart identification is used in real time?Please explain with an example

1551


What are the methods used in UFT to handle exceptions or run-time errors?

655


To which environments does quicktest professional supports?

543