How to get all the objects count and objects names in
webpage using QTP ?

Answer Posted / sai

Dim a(100)

set p=Browser("Home").Page("Home").ChildObjects
cnt=0
For i=0 to p.count-1
b=p(i).GetTOProperty("micclass")
If i<1 Then
a(0)=b
Else
For j=0 to Ubound(a)-1
If a(j)<>b Then
cnt=cnt+1
a(cnt)=b
End If
Next
End If
Next

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?

1591


What are metrics and matrix?

1371


What is the file extension of the code file in qtp?

563


How to find the length of the string in qtp?

584


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

1945






Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1711


how interviews will be on QTP?

1527


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

2801


what is the structure for the data driven framework

1493


Explain the features and benefits of quick test pro(qtp)?

520


what are the mandatory properties for a tex boxc (scenario?)

1531


What is a programmatic description?

609


Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.

2413


Is it possible to change the property value at runtime? How it is possible?

579


What is QTP’s model for test creation?

683