1. I have asked the same question for the third time, but
i am getting wrong answers.
Pls give me the script to count the number of edit boxes or
checkboxes in an windows application screen.
In windows application childobject is not working, anyone
very urgent
Answer Posted / hemakumar.m
i am using 9.5. for u i giving one more solution verify it.
Dim oDesc
Set oDesc=Description.Create()
oDesc("micclass").value="WinEdit"
iObjCount=0
For iIndex=0 To 100
If Dialog("regexpwndtitle:=Login").WinEdit
(oDesc,"index:="&iIndex).Exist(2) Then
iObjCount=iObjCount+1
Else
Exit For
End If
Next
msgbox iObjCount
iObjCount gives editboxes count. u can keep what ever value
u want for ending of for loop.But it must be greater than
equal value,then only u can get correct number.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the two types of repositories available, explain them?
How to test the login page in different ways in automation testing and i need code?
how to test Web application using QTP software
How you can make an action as re-usable action?
To which environments does quicktest professional supports?
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
Explain the benefits of quick test pro(qtp)?
What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?
How did you resolve conflicts present in Object Repository?
What is data driver in qtp? Where we use it?
Explain process of smart Identification in QTP?
What is test object model in quicktest professional (qtp)?
How does qtp identify the object in the application?