how to get childobject from .net application. i tried but
its showing child object count zero. but window has child
objects.the following script i written... pls help me how to
get.
set parent=SwfWindow("winodw name")
CheckObjectDescription parent, SwfButton
Public Function CheckObjectDescription(parent, oDesc)
Set oDesc = Description.Create()
oDesc("micClass:").Value ="Swfbutton"
Set children = parent.ChildObjects(oDesc)
cntObj=children.count
msgbox(cntObj)
End function
Hi Check this code...
set parent=SwfWindow("winodw name")
CheckObjectDescription parent, SwfButton
Public Function CheckObjectDescription(parent, oDesc)
Set oDesc = Description.Create()
oDesc("mercury class").Value ="Swfbutton"
Set children = parent.ChildObjects(oDesc)
cntObj=children.count
msgbox(cntObj)
End function
instead of above use this..
set odesc = description.create
odesc("Class Name").Value = "SwfButton"
set childobj = window("<Window name>").childobjects(odesc)
k = childobj.count
msgbox k
Let me know the feedback -----------
nanda.dreddy@gmail.com
| Is This Answer Correct ? | 2 Yes | 0 No |
can u pls explain me About Driver script.
X=10,Y=20 you need to swap the numbers without using a third variable?
If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?
For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?
The xls contain data. how to get number of columns form the sheet?
how can i add an action(external action) programmatically?
Explain about the test fusion report of quicktest professional (qtp)?
what is the difference btn risks & Therads in the Test plan documentation?
What are "Ordinal Identifiers" and where it is used in QTP. AS FAR AS i KNOW, its is used to identify the object. but i want clarity regarding this.
Hi Small doubt . i am working as Contract employee in XYZ comany thrw ABC Consultancy. so. How i write my resume ? In Professional experience Column. plz send urgent
How you know that a test case is a regression test case
wht is Driver in Integration testing. Anubody can answers it