Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is chaild object method?
When we will go for chaild object method?
How to use chaild object method?

Answer Posted / suresh kumar

Child object method Returns the collection of child objects
contained within the object.

Example for how to use This method

Public Function CheckObjectDesription(parent, descr)

Dim oDesc

' Create description object

Set oDesc = Description.Create()

arProps = Split(descr, ",")

For i = 0 To UBound(arProps)

arProp = Split(arProps(i), ":=")

If UBound(arProp) = 1 Then

PropName = Trim(arProp(0))

PropValue = arProp(1)

oDesc(PropName).Value = PropValue

End If

Next



' Get all child objects with the given description

Set children = parent.ChildObjects(oDesc)



If children.Count = 1 Then

CheckObjectDesription = "Object Unique"

ElseIf children.Count = 0 Then

CheckObjectDesription = "Object Not Found"

Else

CheckObjectDesription = "Object Not Unique"

End If

End Function

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

2134


Is virtual object supported in low level recording mode?

1154


Hi How to retrieve data from web element line by line?

2055


How you debug your script?

1071


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

1941


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

2025


how to know no.of mails in our g mail by using vb-script

2234


Can we create user defined functions in qtp?

999


What are the methods of the TextStream object that are used for reading from a text file?

2270


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

2140


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?

1018


They asked by using qtp recording writing scripting

2574


What is the XML file architecture ?

2001


What is QTP testing process?

1079


Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

2042