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
What is the descriptive programming?
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
What is test object?
What are the types of object repositories? Which one is you using?
what is the difference between data driver & data driven and driver script?
What are the general steps involved in the data driven framework?
What is file database?
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
what is vmodel?advantages and disadvantages of vmodel?
What is accessibility check point?
i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
How to use checkpoints in qtp ?
how will you load the test cases in ddt?
Generic function to search for the unique link in webtable and click on it