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 Property......End Property loop? how to write sript for it in QTP
When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.
Can U Explain about QTP tool from older version to latest version also its differences?
To which environments does quicktest professional (qtp) supports?
What is difference between Recording time object identification and Run time (Execution) time.
How will you report the bug and explain the defect tracking sheet you handled?
Connect to QC using AOM.
Is virtual object supported in low level recording mode?
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
How to use Environment parameterization? Explain with an example.
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
What are the methods of the TextStream object that are used for reading from a text file?