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

Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

546


Can we run multiple QTP scripts one after the other without manual intervention? How?

583


I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me

1411


hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

1860


Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

1482






What is active screen?

553


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1819


How many types of actions are there in quicktest professional?

501


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2046


Explain about datafile/verification of date file when file is not available in local system?

2211


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

1663


when u script reveiwing in which area u more concentrates?

1403


What is the difference between analog and low level recording?

604


How to remove associated function library?

545


if anyone has idea of the interview procedure in covansys, plz send me a mail?

1515