for example one window is there, the window contains how
many edit box's i want script? i know the script but that is
not exact answer....
The script is like this ..........

set a=description.creation()
a("Native class")="WinEdit"
b=window("Flight Reservation").childobject(a).count
msgbox b

Answer Posted / saravanaraja

This Code is working Perfect:

Set desc=Description.Create()
desc("micclass").Value="WebEdit"
Set Edit=Browser("Title:=.*").Page("Title:=.*").ChildObjects
(desc)
msgbox Edit.Count

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How may types of defects identify application or your currently working application?pls give me answer..

1515


How to explain a banking project in interview as a test engineer???

2597


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1443


What are the advantages of a Hybrid framework?

601


unique properties of button,edit box, radio button,check box?

3824






Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1416


What is the significance of “action 0” in qtp?

572


Explain the difference between data driven testing and parameterization ?

589


How to use reporter.report event in qtp ?

557


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

561


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1429


what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

1449


How will you check that your test cases covered all the requirements?

566


How to customize qtp?

613


when u script reveiwing in which area u more concentrates?

1418