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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / raju
SystemUtil.CloseProcessByName "flight4a.exe"
SystemUtil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe"
Set oDesc=Description.Create
oDesc("micClass").value="WinEdit"
Set oChildern=dialog("regexpwndtitle:=Login").ChildObjects
(oDesc)
msgbox ochildern.count
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / hemakumar.m
i am getting correct answer. childobjects is working for
windows apps.It is better to mention error description.
in ur coding u kept small c when getting the count as u
mentioned above.
Set oDesc=Description.Create
oDesc("micClass").value="WinEdit"
Set oChildern=dialog("regexpwndtitle:=Login").ChildObjects
(oDesc)
msgbox oChildern.count
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / dimple
Hi subhash
find the below simple code
Set objdes=Description.Create
objdes("micclass").value="WinEdit"
Set objchild=Window("text:=Flight Reservation").ChildObjects
(objdes)
c=objchild.count
msgbox c
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nath t
which version are you using. if u are using 8.2 version the
above code is not executed. u can use above 8.2 version of
QTP.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / amrita
even i am facing the same problem what was faced by subash
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / suganya
i am also not getting the count it is showing o as result.please help me
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / subaash patil
Thanks a lot Hema Kumar, Nath, and Raju
I just had missed using the word SET in the code.
It is now working fine
Subaash Patil
Is This Answer Correct ? | 0 Yes | 1 No |
can anyone tell me from where i can download qtp demo or crack version
Hi any body can tell me the in detaled information about Description.Create() thanks in advance
How to find the number the number of Links, Brolken Links in a webpage?
I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2
Hi All, I have a problem with getting the value which is available in the table and it is not having any unique property. Please find the below table TopicName CreatedBy ViewCount ------------------------------------------------ XXXX Y 10 ZZZZ ZZ 0 AAAA BBB 3 In the Above table TopicNames are link and it is having an id but the remainig two columns(Created by and ViewCount) are static Web element values and they are not having any unique property. Now i want to get the values of Created BY and View count for each and every topic. Can anybody give me the solution for the above ASAP. If anybody didn't understand the above please free to send me a mail by that i can send you the snap shots and some more description. You can catch me at krishnachand.p@gmail.com
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
CAN I CALL A FUNCTION IN ACTION.IF YES PLEASE HELP ME
difference between waitProperty & Checkproperty
What is smart identification?
what is option explicit? what is the use of it?
what is memory leakage?
16 Answers ITC Infotech, Panamax, TIT,
What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance.