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
Output values? i want a practical example
what is vmodel?advantages and disadvantages of vmodel?
How do you delete unwanted results in qtp?
How to create runtime property for an object?
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?
Where is the Bitmap checkpoint information stored?
Step 3&4 are repeated until an the object in recognised uniquely.
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
unique properties of button,edit box, radio button,check box?
What are the main differences of qtp and win runner?
What is quick test pro? What is a quick test professional?
Explain actions in qtp ?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
How the exception handling can be done using quicktest professional?