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
What is file database?
Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.
Name the different types of recording modes?
What is the file extension of the code file and object repository file in QTP?
How do you create new test sets in td?
When do go for loop condition in test?
Tell me about qtp?
How to analyzing test results using quicktest professional?
How do know the number of browsers opened?
Can we use index on view?
Hi, Can we open a test in qtp10 which is saved in qtp 9.2?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
What is QTP testing process?
What is data driver in qtp?
How can you write the scripts that operate on different objects depending on run-time information?