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
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
what is vmodel?advantages and disadvantages of vmodel?
How to find the length of the string in qtp?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))
Explain Descriptive Programming Types with Examples?
What are the recording modes in qtp?
give me an example where u used good judgement and logic in solving a problem
what type of framework u r using in ur organization
who QTP recognizes the object stored in object repository?
Tell me about qtp?
What is meant by Output Value in UFT?
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
can test automation improve test effectiveness?
What is quicktest professional (qtp window?