********************************************************************************
What is Chiledobjects in QTP:
********************************************************************************
To count the number of same class object present in the window or page
********************************************************************************
Example:
********************************************************************************
What is Chiledobjects in QTP:
********************************************************************************
To count the number of same class object present in the window or page
********************************************************************************
Example:
********************************************************************************
Set obj=Description.Create
obj("micclass").value="WinButton"
Set objcol=Window("Flight Reservation").ChildObjects(obj)
msgbox objcol.count
********************************************************************************
'To get the property value of all objects:
********************************************************************************
For i=0 to objcol.count-1
msgbox objcol(i).getroproperty("name")
Next
********************************************************************************
No comments:
Post a Comment