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
How to find the name of the machine where you are running your automation scripts in qtp?
How do we handle run-time errors?
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
How do you test DLL files using automation Tool QTP?
What does it mean when a check point is in red color? What do you do?
Thanks....But can u tell me how i use the QTP for GIS with one Example...
HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com
Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma
Explain qtp(quick test professional)?
What are the common defects found in your project? (in qtp interview)
Explain quicktest professional testing process?
i need qtp tutorial. pls send it to sridhar.k151@g mail.com
If I give some thousand tests to execute in two days what do you do?
Hi, Can we open a test in qtp10 which is saved in qtp 9.2?
What is quick test pro?