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
i have asked earlier only one question how to test web application using QTp plz send me the answer quickly
Is virtual object supported in low level recording mode?
Hi How to retrieve data from web element line by line?
How you debug your script?
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
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?
how to know no.of mails in our g mail by using vb-script
Can we create user defined functions in qtp?
What are the methods of the TextStream object that are used for reading from a text file?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
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?
They asked by using qtp recording writing scripting
What is the XML file architecture ?
What is QTP testing process?
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.