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 is a recovery scenario?
how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
How to test the login page in different ways in automation testing and i need code?
What is checkpoints for qtp?
www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example
Tell some commonly used Excel VBA functions?
Is it possible to call win runner script in qtp?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
How can you pass value one action to another action?
How many types of parameters are available in quicktest professional?
one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.
Have you used xml check point in your project?
what is defenetion of kiran can u tell me plz CVS, SVN
How to use descriptive programming?