What is chaild object method?
When we will go for chaild object method?
How to use chaild object method?

Answers were Sorted based on User's Feedback



What is chaild object method? When we will go for chaild object method? How to use chaild object m..

Answer / 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

What is chaild object method? When we will go for chaild object method? How to use chaild object m..

Answer / sravan

if we want to get all the objects with in a window then we
will use the child object method..add the window in the
object repository then it will select all the objects in the
window..then call a function with getroproperty method in it
to get all child objects one by one

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More QTP Interview Questions

What does VBS file contain...??? what is VBS file.. ???

6 Answers   GE,


What is the real use of different actions in QTP

2 Answers  


can we run the scripts of qtp 8.2 in the qtp7.0?

1 Answers  


what is the defference between calling ation and called action?

1 Answers  


Explain the concept of object repository?

0 Answers  


how to create user defined functions in QTP? can any one expalin me with example.. Thanks in Advance for help

4 Answers  


how to test Web application using QTP software

0 Answers  


How can we disable smart identification at the time of recording? Ideally, smart identification should be enabled only at the run-time.

3 Answers  


What is difference in global and action sheet in qtp?

0 Answers  


Differences between text and test area checkpoints?

0 Answers  


I have 2 Environment variable which holds int. I called into my test and addedup. but output is concatenating the values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20, c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to overcome this pblm? I used the add fn also..

3 Answers   BirlaSoft,


why should we give deliver good quality software?

0 Answers  


Categories