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

Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

0 Answers  


hello everyone, can anybody please tell me what are the different recording modes of QTP, and where these recording modes are present in QTP 9.2. Thanks in advance, Gaytri

7 Answers  


Does quicktest professional (qtp) is unicode compatible?

0 Answers  


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

0 Answers   Magna Infotech, Oracle,


Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

0 Answers  






how would you go for testing a web application like any jobsite?(using manual n qtp)..pls frnds its very urgent ..i need realtime answers...thanks in advance

2 Answers   Wipro,


where the log files stored when using QTP? plz send answer to me ........

1 Answers  


Is there anyway to have QTP go into a website and map out every object before I actually record any tests? I basically want to map out a website with all the objects and build a complete repository. The reason is because I'm running into issues with hierarcical objects. for example: Browser("ABC company- Home").Page("ABC company - Home").Link ("About Us").Click Browser("ABC company - Page 2").Page("ABC company - Page 2").Link("About Us").Click Both these links ("objects" and I use that term loosely as I'm trained mostly in OO programming) go to the same place but but the object heirarchies (pages) are different. I want a repository that will find any possible link on any possible page without having to manually record it. Is there a way to do this?

1 Answers  


What are SetToProperty, SetRoProperty, GetToProperty scripting?

4 Answers  


How to supress warnings from the "Test results page"?

3 Answers   Crea,


What is the differences between image check point and bit map check point?

0 Answers  


what is difference betweem class annd object?

1 Answers  


Categories