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
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 |
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 |
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?
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
Does quicktest professional (qtp) is unicode compatible?
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
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
where the log files stored when using QTP? plz send answer to me ........
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?
What are SetToProperty, SetRoProperty, GetToProperty scripting?
How to supress warnings from the "Test results page"?
What is the differences between image check point and bit map check point?
what is difference betweem class annd object?