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
How to create a standard checkpoint ?
What are the recording modes in wave event?
What are the data types in qtp?
What is the syntax for how to call one script from another?
Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19
what type of framework u r using in ur organization
What is action split and the purpose of using this in qtp?
When using descriptive programming?
Connect to QC using AOM.
How to capture all the data of a webtable, weblist and combolist using QTP?
What is keyword driven framework?
What is the difference between Keyword Driven test and Data Driven test?
What is qtpro? What is quick test pro?
How many types of status are there?
Explain types of output values?