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 software tester can use constants and variables in scripts?
how to find that tools work well with your existing system?
Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?
How to find the name of the machine where you are running your automation scripts in qtp?
What is the difference between rational rose and QTP?
How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?
What is text/text area checkpoint?
How to run a test using quicktest professional?
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
How QTP support all types of applications (platforms)?
hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!
What is Unicode Compatibility?
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?