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
Answer Posted / nanda
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 |
Post New Answer View All Answers
How do we handle run-time errors?
What are the steps involved in the recovery scenario wizard?
what is meant by source control?
what is command for executing files?
With what extension you can save the list of tests in a file to run in test batch runner?
www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example
How many types of recording modes in qtp? Which will be used when?
How many types of recording facility are available in quicktest professional (qtp)?
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
What is checkpoints for quicktest professional (qtp)?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?
Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
What is the difference in testing a client-server application and a web application?